Linux Anti Netcut V0.2

June 1st, 2007 by Ahmed S. Farghal Leave a reply »

The famous ARP Poisoning problem started to spread here in egypt and while we are putting the main problems an engineer or specifically an egyptian engineer may face, we found that Netcut problem is one of the major ;)

I’ve developed a small script to magically terminate this issue, this is an Intelligent Anti netcut script, it has the following main features:

  1. Support for Multiple Interfaces and auto-detection of the correct interface
  2. Detection of poisoning or weird settings.
  3. Doesn’t need to be run continuously, run it once each 1 minute or even every 1 hour. [Typically, you'll need to run this script once!]
  4. Smart detection of Gateway Settings
  5. Verbose

You can download it directly from here http://www.ahmedsoliman.com/download-manager.php?id=1

NOTE: I’m not responsible for any damage you may have or face or any diseases that might spread or pets that might be killed in an area of half of the universe per using this script :D

UPDATE

This version is pretty old, if you want the latest version please check http://code.google.com/p/antinetcut

Waiting for feedback…

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Slashdot
  • StumbleUpon
  • DZone
  • PDF
  • Reddit
  • RSS
  • Twitter
Advertisement

32 comments

  1. bravooo ya bashmoshandes wallahi
    ana garbto we 100 /100 wallahi yabo7emeed eshta 3aleeeeeeek begad

  2. MO3az says:

    gamed ya ahmad walahy .. tool 3amrak bit3 el geded .. thax ..

  3. BinGoRabbit says:

    AWESOME, really gr8 work Farghal..keep it up man. :)

  4. Dj.r4iDeN says:

    nice work pro

    anta fe3lan proo we mesh men al nas lay bt3mel 7aga

    we t3od tezeet beha

    atmna an rabena ywf2ak fe 7ytak al 3amlya

    your brother ahmed

    NYC Staten island :D

  5. Eslam Mamdouh says:

    hoa bas i have a Q
    when i typed ./antinetcut.sh
    an error appeared to me
    ./antinetcut.sh: line 16: ip: command not found
    Couldn’t autodetect your ethernet card that’s connected to the internet.

    so what can i do

  6. Ahmed El Gamil says:

    the ip command is in /sbin/ip which is not in normal user $PATH
    excute the script as root
    Looks like our Mentor is busy these days, May ALLAH be with him..

  7. MMF says:

    really well done

  8. Eslam Mamdouh says:

    al salam 3alekom wa ra7mot allah wa barakatoh
    ya ahmed the same error appeared to again with root user

    [root@localhost linux]# ./antinetcut.sh
    Dependencies OK
    ./antinetcut.sh: line 16: ip: command not found
    Couldn’t autodetect your ethernet card that’s connected to the internet.

  9. Ahmed El Gamil says:

    okay..looks like you donot have the iproute package
    yum install iproute, or u can find it on the fedora dvd

  10. Eslam Mamdouh EL-Hoseny says:

    The iproute package contains networking utilities (ip and rtmon, for example) which are designed to use the advanced networking capabilities of the Linux 2.4.x and 2.6.x kernel.

    is already installed !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  11. Eslam: could you please tell me how do you log into “root” account?
    do you use “su” ?

  12. Eslam Mamdouh says:

    yes ahmed i log in root mode using su command

  13. you have to add a “-” after su, like the following:

    su – root

  14. Black ice says:

    hello

    great job really thanks

    but it gave me an exit status 1 ? i couldn’t figure out what the problem is ?

    and i need you r feed back

    we rabbena yetamem bekheer ya basha :)

  15. Fouad says:

    Great work, Update it and it will be better, Thanks for your great work and efforts.

  16. hema says:

    thamksssssssssssssssssssssssssssss

  17. wait Anti netcut V0.3 sooooooooon isA.

  18. Nice Script …

    I really would prefer it you’ve documented it more explicitly.
    If I could understand it correctly, ( I read it only ) ,, You only add a static ARP record that is the gateway with the correct MAC address. ( If it so ) .. I guess it works only theoretically !!!

    I am gonna try it soon ,, and in sha2 ALLAH gonna reply with the result ….
    I know you are professional in lots of IT stuff …. Its nice to know people like still exists in egypt …

  19. @diaa: It works for Net Cut prior to version 2.8 because version 2.8 also poisons the router to disable router replies. I’ve written an update to this script that eliminates this problem and can work perfectly against 2.8, and I’ll publish it soon.

    Actually it’s self document, it’s pretty easy and straight forward. I didn’t think that it might be mysterious to some people, so I’ll work on documenting the next version.

    Anyhow, great thanks for passing by.

  20. basim says:

    sure its v.good but i cant run it in ubuntu gnome
    root@scorpione:~# ‘/media/BROGRAMS/linux/antinetcut.sh’
    an error appeared
    Please install iproute suite, yum install iproute
    in ubuntu
    i use sudo apt-get install iproute and installed .. ok
    again an error appeared
    Please install iproute suite, yum install iproute
    your comment!!

  21. yeah, that’s because it’s not supported for ubuntu…

    but it’s easy to hack to ubuntu.. anyway stay tuned for the next release

  22. Magdy says:

    as-salam aliekom
    our yunger linux creative
    i noticed your name in the KDE community isn’t you …
    your site is very intelligent, but it’sn’t native to your name
    why ,,, your all notes ,blogs and diggs in english even the arabic words also in english writing ,so your logo “Unite” -in my opinion- has no mean,
    thanks
    magdy abdelhamid
    alexandria
    Egypt

  23. Hello magdy,

    That’s because I’ve readers from all over the world, that’s why I can’t write in arabic only..
    I write in arabic some personal posts. and why do “Unite” has no meaning to you?! it means “Etta7eto” or
    اتحدوا
    looking forward to hearing from you…

  24. kamasheto says:

    @Magdy: Yet, you decide to write in English.

  25. ahmed ali says:

    شغل جميل يا باشمهندس جزاك الله خيرا

    ربنا يجعلك زخراً للإسلام والمسلمين

  26. m1hmoud says:

    i want the solution for ubuntu
    peace

  27. Ahmed El Sharkawy says:

    شكرا جزيلا يا باشمهندس أحمد على المجهود الرائع

    و ننتظر منك المزيد فى مجال المصدر المفتوح

  28. adam says:

    تماااام

  29. Dimas says:

    emmmm, how do we use it?
    I’m already installed on my notebook, but I don’t know how to operate it
    thanks

Leave a Reply