Skip to content

Commit eebc811

Browse files
committed
Update
1 parent 1b50e45 commit eebc811

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

graphpython.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def list_commands():
161161
["Display-AVPolicyRules", "Display antivirus policy rules"],
162162
["Display-ASRPolicyRules", "Display Attack Surface Reduction (ASR) policy rules"],
163163
["Display-DiskEncryptionPolicyRules", "Display disk encryption policy rules"],
164-
["Display-FirewallPolicyRules", "Display firewall policy rules"],
164+
["Display-FirewallRulePolicyRules", "Display firewall RULE policy rules"],
165165
["Display-EDRPolicyRules", "Display EDR policy rules"],
166166
["Display-LAPSAccountProtectionPolicyRules", "Display LAPS account protection policy rules"],
167167
["Display-UserGroupAccountProtectionPolicyRules", "Display user group account protection policy rules"],
@@ -3692,7 +3692,10 @@ def read_and_encode_cert(cert_path):
36923692
# - https://learn.microsoft.com/en-us/graph/permissions-reference
36933693
# - list-applications 'requiredResourceAccess' contains all the permission ids
36943694
# can also check: https://graph.microsoft.com/v1.0/servicePrincipals/9ee251b0-b25e-4562-b62e-611c75387f2b/appRoleAssignments
3695-
# - for the configured permissions
3695+
# - for the configured permission
3696+
# CHECK
3697+
# - one of above functions^^ kinda does this
3698+
# - need to get the present perms and add to add-applicationpermissions json body like with add-applicationcertificate which checks for current certs so it doesn't override them
36963699

36973700
# add-applicationpermission
36983701
# - create an new application (add-application) then assign this
@@ -4170,7 +4173,7 @@ def read_and_encode_cert(cert_path):
41704173
"saveToSentItems": savetf
41714174
}
41724175

4173-
# Add attachment option:
4176+
# Add attachment option - check what other files are supported...
41744177
# "attachments": [
41754178
# {
41764179
# "@odata.type": "#microsoft.graph.fileAttachment",
@@ -4977,10 +4980,10 @@ def read_and_encode_cert(cert_path):
49774980
# display-firewallrulepolicyrules - actual firewall rules
49784981
elif args.command and args.command.lower() == "display-firewallrulepolicyrules":
49794982
if not args.id:
4980-
print_red("[-] Error: --id argument is required for Display-FirewallPolicyRules command")
4983+
print_red("[-] Error: --id argument is required for Display-FirewallRulePolicyRules command")
49814984
return
49824985

4983-
print_yellow("\n[*] Display-FirewallPolicyRules")
4986+
print_yellow("\n[*] Display-FirewallRulePolicyRules")
49844987
print("=" * 80)
49854988
api_url = f"https://graph.microsoft.com/beta/deviceManagement/configurationPolicies('{args.id}')/settings"
49864989

0 commit comments

Comments
 (0)