mirror of
https://github.com/Screetsec/TheFatRat.git
synced 2023-12-14 02:02:58 +01:00
IP information Implemented
This commit is contained in:
parent
2567a4abe8
commit
bb9013227e
2 changed files with 13 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
## CHANGELOG
|
## CHANGELOG
|
||||||
|
|
||||||
* v1.9.2 - Implemented local ip , public ip & hostame display before user set Lhost
|
* v1.9.2 - Implemented local ip , public ip & hostname display to powerfull.sh
|
||||||
|
* v1.9.2 - Implemented local ip , public ip & hostname display before user set Lhost
|
||||||
* v1.9.2 - Implemented log creation for microsploit & fixed bugs
|
* v1.9.2 - Implemented log creation for microsploit & fixed bugs
|
||||||
* v1.9.2 - Added effective way to detect user linux distribution
|
* v1.9.2 - Added effective way to detect user linux distribution
|
||||||
* v1.9.2 - Setup.sh ( patched )
|
* v1.9.2 - Setup.sh ( patched )
|
||||||
|
|
12
powerfull.sh
12
powerfull.sh
|
@ -11,6 +11,11 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#get user local ip , public ip & hostname into variables
|
||||||
|
lanip=`ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/'`
|
||||||
|
publicip=`dig +short myip.opendns.com @resolver1.opendns.com`
|
||||||
|
hostn=`host $publicip | awk '{print $5}'`
|
||||||
|
|
||||||
# Warn if the gcc-mingw32 package is not located here /usr/bin/i586-mingw32msvc-gcc
|
# Warn if the gcc-mingw32 package is not located here /usr/bin/i586-mingw32msvc-gcc
|
||||||
# You may need to install the following on Kali Linux to compile the C to an Exe - "apt-get install gcc-mingw32"
|
# You may need to install the following on Kali Linux to compile the C to an Exe - "apt-get install gcc-mingw32"
|
||||||
# check mingw if exists
|
# check mingw if exists
|
||||||
|
@ -73,7 +78,7 @@ white='\e[1;37m'
|
||||||
red='\e[1;31m'
|
red='\e[1;31m'
|
||||||
yellow='\e[1;33m'
|
yellow='\e[1;33m'
|
||||||
BlueF='\e[1;34m'
|
BlueF='\e[1;34m'
|
||||||
|
yellow='\e[1;33m'
|
||||||
|
|
||||||
#Banner
|
#Banner
|
||||||
clear
|
clear
|
||||||
|
@ -93,6 +98,11 @@ echo -e $yellow" ===============================================================
|
||||||
echo -e $okegreen""
|
echo -e $okegreen""
|
||||||
|
|
||||||
#input lhost and lport
|
#input lhost and lport
|
||||||
|
echo -e $okegreen""
|
||||||
|
echo -e $yellow "Your local IP address is : $lanip"
|
||||||
|
echo -e $yellow "Your public IP address is : $publicip"
|
||||||
|
echo -e $yellow "Your Hostname is : $hostn"
|
||||||
|
echo -e $okegreen ""
|
||||||
|
|
||||||
read -p ' Set LHOST IP: ' payloadLHOST; read -p ' Set LPORT: ' payloadLPORT
|
read -p ' Set LHOST IP: ' payloadLHOST; read -p ' Set LPORT: ' payloadLPORT
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue