File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Shellcode-Injectable-Project Expand file tree Collapse file tree 2 files changed +6
-6
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -18,24 +18,24 @@ function saveShellcode {
1818}
1919
2020function injectShellcode {
21- shellcodeTestFile=$currentFolder " /ShellcodeTest/shellcode .c"
21+ shellcodeTestFile=$currentFolder " /Shellcode-Injectable-Projectshellcode .c"
2222 shellcodeTestLine=" 4"
2323 shellcode_escaped=$( echo " $shellcode " | sed -e ' s/[\/&]/\\&/g' )
2424 code=" char code[] =\" $shellcode_escaped \" ;"
2525
2626 sed -i " ${shellcodeTestLine} s/.*/$code /" " $shellcodeTestFile "
2727
28- echo " Shellcode injected into " $currentFolder " /ShellcodeTest/shellcode .c"
28+ echo " Shellcode injected into " $currentFolder " /Shellcode-Injectable-Projectshellcode .c"
2929}
3030
3131function buildShellcode {
32- gcc $currentFolder " /ShellcodeTest/shellcode .c" -o $currentFolder " /ShellcodeTest/shellcode " -fno-stack-protector -z execstack -no-pie
33- echo " Shellcode test program was build succesfuly into " $currentFolder " /ShellcodeTest/shellcode "
32+ gcc $currentFolder " /Shellcode-Injectable-Projectshellcode .c" -o $currentFolder " /Shellcode-Injectable-Projectshellcode " -fno-stack-protector -z execstack -no-pie
33+ echo " Shellcode test program was build succesfuly into " $currentFolder " /Shellcode-Injectable-Projectshellcode "
3434}
3535
3636function runShellcode {
37- echo " Executing shellcode " $currentFolder " /ShellcodeTest/shellcode "
38- ./ShellcodeTest/shellcode
37+ echo " Executing shellcode " $currentFolder " /Shellcode-Injectable-Projectshellcode "
38+ ./Shellcode-Injectable-Projectshellcode
3939}
4040
4141# Print in console
You can’t perform that action at this time.
0 commit comments