Results 1 to 6 of 6

Thread: Learning how to use exploit in BT4

Hybrid View

  1. #1
    Just burned his ISO
    Join Date
    May 2010
    Posts
    3

    Default Learning how to use exploit in BT4

    Hi there,

    at first i want to ask you to point any part of this text that you can't understand. English is not my language but i try my best to communicate with you.

    I have router Sagem Fast, BT4 and EW-7318USg card. Succesfully cracked WEP and wanted to learn something new.

    On milworm i found this Sagem Routers F@ST Remote CSRF Exploit

    I copied text and saved as dhcpattack.py, changed eth0 to wlan0, installed scapy library, but still it doesn't work and i got the message that "Ether isn't defined"

    Is the problem with library or should i change some options in router soft first?

    Thanks for any help

    bump with addition data.

    This is what i got after typing
    Code:
    python dhcpattack.py -i wlan0 -t 192.168.1.1 -p "<IFRAME height=0 width=0 src='http://192.168.1.1/restoreinfo.cgi'></IFRAME>"
    Code:
    V:
    �
    
    
    
    Starting....
    
    Traceback (most recent call last):
      
    File "dhcpattack.py", line 203, in <module>
        
    ether = Ether(src= srcmac,dst="ff:ff:ff:ff:ff:ff")
    
    NameError: name 'Ether' is not defined
    Last edited by Archangel-Amael; 05-17-2010 at 09:56 AM.

  2. #2
    Senior Member
    Join Date
    Feb 2010
    Posts
    146

    Default Re: Learning how to use exploit in BT4

    i think it's saying that the ethernet frame type is not defined, i didn't look to closely at the exploit code but check for fields to input the mac addys for your router, interface and general tcp packet/arp info
    open source = open minds, human knowledge belongs to the world

  3. #3
    Very good friend of the forum Gitsnik's Avatar
    Join Date
    Jan 2010
    Location
    The Crystal Wind
    Posts
    851

    Default Re: Learning how to use exploit in BT4

    Quote Originally Posted by crweedon View Post
    i think it's saying that the ethernet frame type is not defined
    The perl programmer in me is reading that error message more along the lines that Ether() is not defined, probably that scapy is not properly loaded in fact. Could be wrong.
    Still not underestimating the power...

    There is no such thing as bad information - There is truth in the data, so you sift it all, even the crap stuff.

  4. #4
    Developer
    Join Date
    Mar 2007
    Posts
    6,126

    Default Re: Learning how to use exploit in BT4

    I agree with Gitsnik, Looks like Scapy is not properly loading the mac addy of the adapter so there fore Ether remains undefined.

  5. #5
    Just burned his ISO
    Join Date
    May 2010
    Posts
    3

    Default Re: Learning how to use exploit in BT4

    thanks guys.

    Indeed the problem was with scapy.

    I changed the line
    Code:
    from scapy import *
    to
    Code:
    from scapy.all import *
    bacause i found that scapy devs changed that import command in newest version.

    After that everything worked like a miracle.

  6. #6
    Senior Member
    Join Date
    Feb 2010
    Posts
    146

    Default Re: Learning how to use exploit in BT4

    well done, that'll teach me to ctrl-f the code instead of just reading through it. thank you guys for the correction, like i said, i didn't look to closely at the code
    open source = open minds, human knowledge belongs to the world

Similar Threads

  1. Programing learning
    By SuperMiguel in forum OLD Newbie Area
    Replies: 18
    Last Post: 09-17-2009, 11:28 AM
  2. Learning basics
    By -Seven- in forum OLD Newbie Area
    Replies: 5
    Last Post: 08-26-2009, 10:46 PM
  3. Just learning to script
    By sn0w1 in forum OLD Newbie Area
    Replies: 3
    Last Post: 07-09-2008, 09:25 AM
  4. Learning C++
    By InSanCen in forum OLD General IT Discussion
    Replies: 10
    Last Post: 03-07-2008, 08:48 AM
  5. Learning to Hack
    By Mortifix in forum OLD Newbie Area
    Replies: 58
    Last Post: 12-01-2007, 04:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •