10000 Update v1.0 · beerandgin/Graphpython@0b72525 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0b72525

Browse files
committed
Update v1.0
1 parent 09d73b8 commit 0b72525

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/getgraphtokens.png

-3.01 KB
Loading

Graphpython/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def parseArgs():
3535
parser.add_argument("--list-commands", action="store_true", help="List available commands")
3636
parser.add_argument("--token", help="Microsoft Graph access token or refresh token for FOCI abuse")
3737
parser.add_argument("--estsauthcookie", help="'ESTSAuth' or 'ESTSAuthPersistent' cookie")
38-
parser.add_argument("--use-cae", action="store_true", help="Flag to use Continuous Access Evaluation (CAE) - add 'cp1' as client claim to get an access token valid for 24 hours")
39-
parser.add_argument("--cert", help="X509Certificate path (.pfx)")
38+
parser.add_argument("--use-cae", action="store_true", help="Flag to use Continuous Access Evaluation (CAE)")
39+
parser.add_argument("--cert", help="X509Certificate path (.pfx, .crt, .pem, .cer)")
4040
parser.add_argument("--domain", help="Target domain")
4141
parser.add_argument("--tenant", help="Target tenant ID")
4242
parser.add_argument("--username", help="Username or file containing usernames (invoke-userenumerationasoutsider)")

Graphpython/commands/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ def invoke_refreshtosharepointtoken(args):
833833
# invoke-certtoaccesstoken
834834
def invoke_certtoaccesstoken(args):
835835
if not args.tenant or not args.cert or not args.id:
836-
print_red("[-] Error: --tenant, --cert, and --id arguments are required for Invoke-CertToAccessToken command")
836+
print_red("[-] Error: --tenant, --cert, and --id <appid> arguments are required for Invoke-CertToAccessToken command")
837837
return
838838

839839
print_yellow("[*] Invoke-CertToAccessToken")

Graphpython/commands/exploit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ def add_applicationcertificate(args):
563563
.crt
564564
"""
565565
if not args.id or not args.cert:
566-
print_red("[-] Error: --id and --cert required for Add-ApplicationCertificate command")
566+
print_red("[-] Error: --id <appobjectid> and --cert required for Add-ApplicationCertificate command")
567567
print_red(openssl)
568568
return
569569

0 commit comments

Comments
 (0)
0