AntiNetCut v2

At last, I’m very happy to announce the release of the long-waited Anti NetCut version2.

Main Features:

  1. Works on Ubuntu/Fedora/RHEL..
  2. Written in Python so it’s easy to maintain and update.
  3. Automatic detection of almost everything (you might need to supply the interface name as illustrated below)
  4. Works perfectly with NetCut 2.8…

The usage instructions are too easy, just download and edit the antinetcut.py file (change “device=eth0″) to your interface name and run the script…


Notes

  • You must leave the script running in the background, stopping the script means that you might get attacked again.
  • After starting the script, it might take a few seconds before you get your connection back, so please be patient.

Anyone wants to join development, please see the official page http://code.google.com/p/antinetcut/

Download from here: Download Here

Comments (48)

Good Backup script

I’ve a local home server that works as a local RAID storage with some virtual machines that serve different services to me and to some friends. The most known service to most of you is the XMPP service for chat.cat-hackers.net that enables all the H4ck3rZ Foundation members to communicate in an efficient way.

Another thing is that this server hold all of my important data that represents my own work throughout the years, so it’s very important to keep them secure and safe. I’d a bad experience of losing a 2.5GB harddrive that had all of my programming work. That experience taught me how to spend more money to keep your data safe and secure.

So :) I got an external 500GB USB hard drive to have it mainly as a backup drive for my 500GB RAID local home server, and as you can see it’s 500GB too, so I can’t do incremental backups on that disk because it too small for such a plan, so I decided to rsync the data on the storage server to the USB hard drive and I wrote a nice script that does some smart stuff….

Let’s post the script first then I’ll describe more about it.. Read the rest of this entry »

Comments (12)

Internet Connectivity Monitor Script

I was assigned to monitor the link status here in the company because we had many problems regarding our new TEData internet line. We couldn’t calculate exactly when the line is down and up, so I wrote a small script to run as a cronjob to create a log for the internet connectivity status.

The script is quite useful and very light, it’ll generate a log about your internet connectivity and will try to detect the reason of the internet connectivity problems.

Note: you’ll need to change the value of the variable GATEWAY_IP to your gateway/router/dsl_modem IP address before running the script. And you don’t have to be root to run this script.

you can download it from this link

Comments (2)

Fedora 8 Test Drive

A few days ago I got a brand new Fedora 8 on a DVD iso and I was too excited to have a setup on my laptop. In fact I didn’t install Fedora 7 because I always felt that it doesn’t have much to add, wasn’t that stable too and it had one famous problem regarding firewire and video capturing.

starting from the installation, it was smooth and sexy, I’ve added the additional repository and chose alot of my preferred packages.

After Installation it was pretty sleek on GNOME and pretty UGLY! on KDE!, it seems that fedora developers insist convincing me of using GNOME so I said I’ll go for GNOME for awhile and see.

Read the rest of this entry »

Comments (8)

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…

Comments (28)

الأحتكار الصارخ و المستفز

النهارده كنت بظبط جهاز محمد اخويا الصغير و طبعاً هو من مستخدمين ويندوز اللعين! و انا بفتح الوندز لقيت رسالة تحذير بأن الويندوز غير اصلية و مايكروسوفت بدأت تحارب سرقة البرامج و بناء على هذا الويندوز مش هتعمل تحديث و طبعا الويندوز لو معملتش تحديث يبقي بعد بكرة الصبح هتلاقي الكراكرز عاملين عالية عيد ميلاد و جايبين العيال الصغيرة الي لسا بتتعلم كراك علي جهاز الواد الغلبان .

الموضوع ده استفزني لدرجة كبيرة جداً و بدأت افكر في الخساير الفادحة اللي هنخسرها كأمة من حيث الفلوس و القيمة.

القصة إن ميكروسوفت فضلت تحتل عقول الشباب من المستخدمين و المطورين لحد اما بقي كل الناس فاكرة ان الكمبيوتر هو الويندوز و ان مفيش حاجة غيره! دا انا مرة بكلم واحد صاحبي و بقوللو عن السولاريس و بقولو انه كويس و كده لقيتة بيقوللي “هو فيه حد بيستخدمة ده؟” فقلتلة ان اكبر شركات البترول و البنوك و الأتصالات بتستخدمة و انه مشهور جدا و الحقيقة ان مايكروسوف قعدت مده طويلة جداً مسيطرة علي تفكيري و تعليمي لدرجة اني كنت باتمني اشتغل فيها و مكنتش ابداً عارف ده تأثيرة ايه علينا. الحقيقة ان عايز اوضح نقطة و هي ان مايكروسوفت فضلت فتره كبيييييييييرة سايبة الدنيا في الويندوز عال البحري و الشباب كلة بينسخ و السريال واحد و كله تمام، لكن الواقع انها كانت بالطريقة دي بتعمل دعاية خفية حتي اصبحت الويندوز الأساس بتاع الكمبيوتر بين الشباب، ده غير ان الناس اتعودت على مشاكل الويندوز الكتيرة و بقى شئ عادي

لكن دلوقي ميكروسوفت بتعمل اعلاناات في الراديو عشان تبيع النسخة الفاشلة تماماً “فيستا” و التي تطلب مواصفات خارقة اللينكس بيعتبرها مواصفات سيرفر و اعتقد ان ده بالتعاون مع شركات الهاردوير عشان كله ياكل عيش. و عملت الأختراع اللي اسمة
“Windows Genuine Check”

و بقى دلوقتي اللى عندة ويندوز مش اصلية يشربها عشان مفيش تحديث و الويندوز ب 500 جنية مصري يعني صدقوني الناس هتبدأ تنصاع للفكرة و كلة هايشتري كأنها قطعة من مكونات الكمبيوتر

امتى بقى الناس تفوق و ضميرها يصحي و زي ما بتطبق المقاطعة في الأكل تتطبق المقاطعة لمنتجات الاحتكار الامريكية و خصوصاً ان فية بديل مجاني و احسن و مش عايز اتكلم عن مميزاته الفنية ، لكن عايز اقول انه يمكن يكون بيدينا فرصتنا الأخيرة اننا نرجع اسياد العلم في العالم و نرجع اصحاب كلمة و صوت وسط الدول الأولي في صناعة السوفت وير

يمكن يكون هو الأمل في ان المهندسين يتخرجوا على مستوى محترم من العلم و روح المشاركة ، يمكن يكون هو ده حل مشاكل امه مالهاش هدف ، يمكن يمكن يمكن

و يمكن لأ، لكن الفكرة تستحق التجربة و التضحية

الفكرة دي هي اللينكس! يا مسلمين افيقوا و حرروا الأمة

Comments (23)

My Storage Server

I’d a very complicated problem related to storing data, I have a bad story also about losing my work files. So I decided to unify my storage into a single (24/7) online storage server - but low cost -.

I had some old hardware in my closet and I decided to use them as effecient as possible, so I started with a Manli Motherboard and a P3 Processor (1.2 GHz) with 1 20GB Harddisk and 2 160GB SATA Harddisks.

I had a problem regarding the SATA harddisks as I don’t have SATA controller in my Motherboard, so I searched in the hardware market and I found a PCI SATA Controller based on VIA VT6421 chipset which was perfectly compatible with Linux 2.6 kernel. At then I started assembling things together and I bought a good ventilated chassis to make things comfortable for the hardware inside.

I have used the IDE 20GB Disk as the system harddisk and installed Fedora core 6 i386 on it and then I had a large free space remaining on the disk. I used this disk to mirror the fedora updates repos and I wrote a small script to rsync the fedora updates mirror every 2 days on 3:30AM automatically using Vixie Cron.

#!/bin/bash
if rsync -avrt rsync://distro.ibiblio.org/fedora-linux-core/updates/6/i386/ \
–exclude=debug/ –exclude=repodata/ –exclude=*debuginfo* –exclude=*i18* \
–exclude=*langpack* /fedora-6/updates/
then
createrepo /fedora-6/updates/
fi

The remaining 2 160GB SATA Disks were connected and configured as RAID 1 (Mirror) to get a high redundancy and availability possible having a total storage area of 160GB. I think I’ll buy another 160GB disk and I’ll switch into RAID 5 to get 320GB of total storage.

The machine is headless and I’m using VNC to control everything, It’s used also as a DNS caching and forwarding server to my computers and download machine ;)

The last thing is to see how to access my files in an effecient and a speedy way, I used a NFS server optimized to get the best performance on LAN, I can get transfer rates up to 9Mbytes/Sec and Samba server with authentication to have access from windows machines.

The performance is really nice although the machine is pretty old and has only 256MB of memory but Linux is working great with outstanding performance and excellent stability. I’ve achieved disk reads of 53.5 Mbyte/Sec with buffered reading on the RAID 1 array.
Soon I’ll buy a real IP address to bind with this machine to have it accessible through the internet for remote files access. I’ll show you some of pictures about it ;)

Comments (5)

Getting Toshiba Built-in SD Card Reader to Work under Fedora

Today I wanted to get my toshiba built-in SD card reader to work because I hated to have an internal reader and use an external one (shame, huh?).

So I decided to give it some tries and after many searches I discovered that this device isn’t supported in the linux kernel, so we don’t have a driver for it, but I discovered something too, This device has a built-in generic controller that moves the control into the SD-Host and we can allow this by changing a generic PCI-register value called “MMC_SD_DIS”, this register is usually configured by EEPROM and written to the laptop using the proper driver and since we don’t have a driver we will do this by hand each time the machine boots into linux, or you can put this line into /etc/rc.local

The solution is to write the following in your terminal screen as a super-user:

# setpci -s `lspci |grep “PCIxx21 Integrated”|cut -d” ” -f1` 4c=0×22

as soon as you execute this command the SD-Reader works like magic :)

I was really happy to get this to work and thanks for the opensource community for the free forums that helped alot :D

Comments (1)

C++ Linux GUI Programming with QT Series 1

Al Salamo 3alykom,

I’m going to introduce a new series in linux programming, it’s the C++ programming with QT3.

first of all, we don’t know what a “QT” is. so let’s understand what does QT means and rock’n'roll :woot:
Qt is a comprehensive C++ application development framework. It includes a class library and tools for cross-platform development and internationalization.

Qt is Cross-Platform
Qt is the leading framework for native cross-platform application development. The Qt API and tools are consistent across all supported platforms, enabling developers to learn one API and perform truly platform-independent application development and deployment. Using Qt, development teams can create native applications for all major operating systems - from all major development platforms. Read the rest of this entry »

Comments (2)