Skip to content

Commit

Permalink
支持加载目标主机上的shellcode.bin
Browse files Browse the repository at this point in the history
  • Loading branch information
uknowsec authored Apr 26, 2021
1 parent 1096b95 commit 2a55a18
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions SharpSQLTools/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ private static void Help()
clr_adduser {user} {pass} - add user by clr
clr_download {url} {path} - download file from url by clr
clr_scloader {code} {key} - Encrypt Shellcode by Encrypt.py (only supports x64 shellcode.bin)
clr_scloader2 {remotefile} - Upload Payload.bin to target before Shellcode Loader
exit - terminates the server process (and this session)"
);
}
Expand Down Expand Up @@ -354,6 +355,13 @@ static void interactive(string[] args)
clr_exec(s);
break;
}
case "clr_scloader2":
{
String s = String.Empty;
for (int i = 0; i < cmdline.Length; i++) { s += cmdline[i] + " "; }
clr_exec(s);
break;
}
case "clr_download":
{
String s = String.Empty;
Expand Down Expand Up @@ -502,6 +510,13 @@ static void Noninteractive(string[] args)
clr_exec(s);
break;
}
case "clr_scloader2":
{
String s = String.Empty;
for (int i = 3; i < args.Length; i++) { s += args[i] + " "; }
clr_exec(s);
break;
}
case "clr_download":
{
String s = String.Empty;
Expand Down
2 changes: 1 addition & 1 deletion SharpSQLTools/Setting.cs

Large diffs are not rendered by default.

0 comments on commit 2a55a18

Please sign in to comment.