![]() |
|
cPanel Username look up [ on bash ] - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Coding (https://sinister.li/Forum-Coding--71) +--- Thread: cPanel Username look up [ on bash ] (/Thread-cPanel-Username-look-up-on-bash) |
cPanel Username look up [ on bash ] - gabby - 08-16-2013 Code: #!/bin/bash
#
# ---------------------------------
# cPanel Username look up
# Licence : Linux
# ---------------------------------
IP=$1
Usage()
{
echo ""
echo "# ******************************************************************************************#"
echo "# Usage : cPanel.sh <IP> *#"
echo "# Help : -h && --help : Show This Menu *#"
echo "# RunScript : give permision to script and run it #"
echo "# ******************************************************************************************#"
echo ""
}
# check for arguments
if [ -z "$IP" ] || [ "$IP" == "-h" ] || [ "$IP" == "--help" ]; then
Usage;
exit
fi
echo "[*] found cPanel user will be saved at cPanel.lst ..."
url="http://dedicatedornot.com/xml/$IP"
wget -q "$url"
echo "[*] Start. Searching ..."
cat $IP | cut -d '>' -f 2 | awk '{gsub("www.","")}1' | cut -d '<' -f 1 |sed '/^$/d' >>sites.lst
cat $IP | cut -d '>' -f 2 | awk '{gsub("www.","")}1' | cut -d '<' -f 1 | cut -d '.' -f 1 | sed '/^$/d'>> cPanel.lst
counter=1
for cp in `cat cPanel.lst`
do
site=`head -n $counter sites.lst | tail -n 1`
echo "[*] Username : $cp => Site : $site "
let counter=$counter+1
done
echo "[*] Selesai ."RE: cPanel Username look up [ on bash ] - The Real Slim Shady - 08-17-2013 okay... im by no means a sed/awk pro... but this looks to me like it just takes a list from dedicatedornot and puts it in a text file? theres no actual check to see if the sites are actually running cpanel nor does it show the actual username of the cpanel site? Unless ive misunderstood something. RE: cPanel Username look up [ on bash ] - LoneDevil - 08-17-2013 (08-16-2013, 11:19 PM)gabby Wrote: Was it you that wrote this? RE: cPanel Username look up [ on bash ] - The Real Slim Shady - 08-17-2013 (08-17-2013, 05:31 AM)LoneDevil Wrote:(08-16-2013, 11:19 PM)gabby Wrote: I dont think it was. Ive found versions of this code from earlier this year with other credits, eg Quote:# ---------------------------------I wouldnt expect that the person who released it would remove the credit line when he reposted. RE: cPanel Username look up [ on bash ] - Ex094 - 08-17-2013 I think Leeched or Copy Pasted Source Codes and works should be trashed RE: cPanel Username look up [ on bash ] - The Real Slim Shady - 08-17-2013 (08-17-2013, 07:22 AM)Ex094 Wrote: I think Leeched or Copy Pasted Source Codes and works should be trashed I concur, unless proper credit has been given AND it is useful or beneficial to the community. Stuff like this is not, Hell like i said im no expert but i dont even think this code works as described. |