Linux Anti Netcut V0.2

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

Waiting for feedback…

28 Comments »

  1. Ahmed Refaey said,

    June 1, 2007 @ 6:34 am

    Well Done !

  2. Abd El-Rahman Hegazy said,

    June 1, 2007 @ 6:53 am

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

  3. MO3az said,

    June 3, 2007 @ 10:11 pm

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

  4. BinGoRabbit said,

    June 5, 2007 @ 1:27 pm

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

  5. Dj.r4iDeN said,

    June 8, 2007 @ 11:42 pm

    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

  6. Ahmed S. Farghal said,

    June 8, 2007 @ 11:44 pm

    thanks :)

  7. Eslam Mamdouh said,

    July 23, 2007 @ 5:46 pm

    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

  8. Ahmed El Gamil said,

    July 24, 2007 @ 10:55 am

    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..

  9. MMF said,

    July 24, 2007 @ 8:22 pm

    really well done

  10. Eslam Mamdouh said,

    July 27, 2007 @ 2:15 pm

    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.

  11. Ahmed El Gamil said,

    July 28, 2007 @ 1:22 pm

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

  12. Eslam Mamdouh EL-Hoseny said,

    July 29, 2007 @ 12:09 am

    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 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  13. Ahmed S. Farghal said,

    July 29, 2007 @ 12:59 am

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

  14. Eslam Mamdouh said,

    August 8, 2007 @ 1:02 am

    yes ahmed i log in root mode using su command

  15. Ahmed S. Farghal said,

    August 8, 2007 @ 11:45 pm

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

    su - root

  16. Black ice said,

    August 9, 2007 @ 1:05 am

    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 :)

  17. Fouad said,

    November 15, 2007 @ 4:49 pm

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

  18. hema said,

    November 16, 2007 @ 4:41 pm

    thamksssssssssssssssssssssssssssss

  19. Ahmed S. Farghal said,

    November 21, 2007 @ 3:54 pm

    wait Anti netcut V0.3 sooooooooon isA.

  20. Diaa Mohamed Kasem said,

    May 9, 2008 @ 2:01 am

    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 …

  21. Ahmed S. Farghal said,

    May 10, 2008 @ 11:56 am

    @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.

  22. basim said,

    June 3, 2008 @ 12:45 pm

    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!!

  23. Ahmed S. Farghal said,

    June 3, 2008 @ 6:00 pm

    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

  24. Magdy said,

    June 9, 2008 @ 10:00 pm

    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

  25. Ahmed S. Farghal said,

    June 10, 2008 @ 4:40 pm

    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…

  26. kamasheto said,

    June 11, 2008 @ 7:35 am

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

  27. ahmed ali said,

    August 5, 2008 @ 10:56 am

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

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

  28. m1hmoud said,

    August 12, 2008 @ 2:46 am

    i want the solution for ubuntu
    peace

RSS feed for comments on this post

Leave a Comment