Skip to content

Commit 2a55a18

Browse files
authored
支持加载目标主机上的shellcode.bin
1 parent 1096b95 commit 2a55a18

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

SharpSQLTools/Program.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ private static void Help()
3636
clr_adduser {user} {pass} - add user by clr
3737
clr_download {url} {path} - download file from url by clr
3838
clr_scloader {code} {key} - Encrypt Shellcode by Encrypt.py (only supports x64 shellcode.bin)
39+
clr_scloader2 {remotefile} - Upload Payload.bin to target before Shellcode Loader
3940
exit - terminates the server process (and this session)"
4041
);
4142
}
@@ -354,6 +355,13 @@ static void interactive(string[] args)
354355
clr_exec(s);
355356
break;
356357
}
358+
case "clr_scloader2":
359+
{
360+
String s = String.Empty;
361+
for (int i = 0; i < cmdline.Length; i++) { s += cmdline[i] + " "; }
362+
clr_exec(s);
363+
break;
364+
}
357365
case "clr_download":
358366
{
359367
String s = String.Empty;
@@ -502,6 +510,13 @@ static void Noninteractive(string[] args)
502510
clr_exec(s);
503511
break;
504512
}
513+
case "clr_scloader2":
514+
{
515+
String s = String.Empty;
516+
for (int i = 3; i < args.Length; i++) { s += args[i] + " "; }
517+
clr_exec(s);
518+
break;
519+
}
505520
case "clr_download":
506521
{
507522
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)