Login Register






cPanel Username look up [ on bash ] filter_list
Author
Message
cPanel Username look up [ on bash ] #1
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 ."

Reply

RE: cPanel Username look up [ on bash ] #2
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.

Reply

RE: cPanel Username look up [ on bash ] #3
(08-16-2013, 11:19 PM)gabby Wrote:
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 ."

Was it you that wrote this?
[Image: HJIAwEw.png]

Reply

RE: cPanel Username look up [ on bash ] #4
(08-17-2013, 05:31 AM)LoneDevil Wrote:
(08-16-2013, 11:19 PM)gabby Wrote:
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 ."

Was it you that wrote this?

I dont think it was. Ive found versions of this code from earlier this year with other credits, eg

Quote:# ---------------------------------
# cPanel Username look up
# Licence : Linux
# ---------------------------------
#
# Title : cPanel Username look up
# Code : Bash
# Author : RedH4t.Viper
# Email : RedH4t.Viper@Gmail.com , RedH4t.Viper@yahoo.com
# Date : 2013 27 April
# Home : IrIsT Security Center
# Thanks : IrIsT ,TBH ,kurdhackteam , 3xp1r3
#-----------------------------------------------------------------#
I wouldnt expect that the person who released it would remove the credit line when he reposted.

Reply

RE: cPanel Username look up [ on bash ] #5
I think Leeched or Copy Pasted Source Codes and works should be trashed
My Blog: http://www.procurity.wordpress.com
Donations: 1HLjiSbnWMpeQU46eUVCrYdbkrtduX7snG

Reply

RE: cPanel Username look up [ on bash ] #6
(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.

Reply