Thursday, October 23, 2025

thumbnail

Linux protection from ARP attacks

 Of course. Protecting yourself from NetCut (or any ARP spoofing/p poisoning attack) on Linux Mint is absolutely possible. Linux has excellent built-in tools and methods to defend against this.



NetCut works by exploiting the **ARP (Address Resolution Protocol)**, which is the method devices on a local network use to find each other's MAC addresses. NetCut sends fake ARP messages, tricking your computer into sending its traffic to the attacker's machine instead of the real router (gateway).


Here are the most effective ways to protect yourself, from simple to advanced.


---


### Method 1: The Simple & Effective Solution (Static ARP Entry)


This is one of the best and most straightforward defenses. You tell your computer to *never* change the MAC address of your router, no matter what ARP messages it receives.



1.  **Find Your Gateway's IP and MAC Address:**

    *   Open a terminal (`Ctrl+Alt+T`).

    *   Find your router's IP address (the default gateway):

        ```bash

        ip route show default

        ```

    *   Look for the line that says `default via X.X.X.X`. That IP (e.g., `192.168.1.1`) is your gateway.

    *   Now, get the *real* MAC address of your router. Use the `arp` command. First, ping the gateway to make sure it's in your ARP cache:

        ```bash

        ping -c 4 192.168.1.1

        ```

        (Replace `192.168.1.1` with your gateway's IP)

    *   Now, look up the MAC address:

        ```bash

        arp -n 192.168.1.1

        ```

    *   The output will look like this: `Address HWtype HWaddress ...`. Write down the `HWaddress` (e.g., `a1:b2:c3:d4:e5:f6`). This is the correct MAC address.


2.  **Create a Permanent Static ARP Entry:**

    *   We need to add a command to your network startup scripts. The easiest way is to add it to your `/etc/rc.local` file (you might need to create it).

    *   Open the file with root privileges:

        ```bash

        sudo xed /etc/rc.local

        ```

    *   Add the following lines *before* the `exit 0` line (if the file is empty, create it as shown below):

        ```bash

        #!/bin/sh -e

        #

        # rc.local - executed at the end of each multiuser runlevel


        # Create a static ARP entry for the router

        arp -s 192.168.1.1 a1:b2:c3:d4:e5:f6


        exit 0

        ```

    *   **Crucial:** Replace `192.168.1.1` with your gateway's IP and `a1:b2:c3:d4:e5:f6` with your gateway's MAC address.

    *   Save the file and exit the editor.

    *   Make the `/etc/rc.local` file executable:

        ```bash

        sudo chmod +x /etc/rc.local

        ```

    *   **Reboot your computer** or run the `arp` command manually to apply the change immediately:

        ```bash

        sudo arp -s 192.168.1.1 a1:b2:c3:d4:e5:f6

        ```


**What this does:** Your system will now ignore any malicious ARP packets trying to change the router's MAC address. NetCut becomes useless against you.


---


### Method 2: Using a Graphical Tool (ARPWatch)


`arpwatch` is a tool that monitors your network's ARP traffic and can email you when changes are detected. It's more for alerting than preventing, but it's very useful.


1.  **Install ARPWatch:**

    ```bash

    sudo apt update && sudo apt install arpwatch

    ```

2.  It will start automatically and build a database of known MAC/IP pairs. If a new device claims to be your router, it will log the event.

3.  **To check the logs:**

    ```bash

    sudo grep arpwatch /var/log/syslog

    ```


---


### Method 3: Advanced Tool - Using `arpon` (ARP Defender)


`arpon` is a tool designed specifically to prevent ARP poisoning attacks. It acts as a daemon (background service) that protects the local network.


1.  **Install `arpon`.** You might need to enable the Universe repository first.

    ```bash

    sudo apt install arpon

    ```

2.  **Run it in daemon mode:**

    ```bash

    sudo arpon -d -i wlan0

    ```

    (Replace `wlan0` with your network interface name. Find it with `ip a` - it's often `wlan0` for Wi-Fi or `eth0` for Ethernet).

3.  **To make it run automatically at boot** is more complex and involves editing systemd service files, but running the command above will protect your session.


---


### Method 4: Good Practice (The Human Firewall)


*   **Use a VPN:** A good VPN encrypts all your traffic. Even if someone successfully ARP poisons you, they can't *see* your data—it's just encrypted gibberish to them. They can still disconnect you, but they can't spy on you.

*   **Trusted Networks:** Be wary of public Wi-Fi networks (cafes, airports). These are prime targets for such attacks. Use a VPN whenever you're on a public network.

*   **Network-Level Protection:** The best defense is on the router itself. If you own the router, look for a feature called "**ARP Spoofing Protection**," "**Static ARP**," or "**DHCP Snooping**" in its settings. Enabling this will protect every device on your network.


### Summary & Recommendation


For most users on Linux Mint, **Method 1 (Static ARP)** is the perfect solution. It's lightweight, built-in, and extremely effective.


1.  **Do Method 1.** It will completely block NetCut-style attacks.

2.  **Use a VPN** (like ProtonVPN, Mullvad, or others) on any network you don't fully trust. This is a good general security practice.

3.  Consider installing **`arpwatch` (Method 2)** if you want to be alerted to any suspicious activity on your network.


By implementing even just the first method, you have already made yourself virtually immune to NetCut on your Linux Mint system.


Thursday, November 4, 2021

thumbnail

CodePen for android

 

Sometimes we need a practical application that helps us learn on the mobile and is somewhat similar to the tools we use on the computer or on the computer browser. Most of the time, responsive web services do not meet our desires to learn, so we are forced to have practical applications.


Today, my dear friends, I present to you a free application for Android in its trial version with a source code followed in the case of modification and beatification.


Code Bent website https://codepen.io/


Download from google play store


Download the source code for the application with normalization on the github website

https://github.com/sadik-fattah/codepen

Follow me on KitHub https://github.com/sadik-fattah


thumbnail

Building a video sharing script from YouTube or any site with videos that support html5

 

In this post, I put before you, dear friends, a way to publish your videos or courses in the form of a site like the famous courses sites, but I relied on the YouTube server instead of a personal server in the task. You can use any server that supports html5 to publish videos on your site from it......


For more wonderful and rare resources, follow my github account

https://github.com/sadik-fattah





Protect the admin panel with a desktop application


Download the project from the following link

https://github.com/sadik-fattah/Video_Shared



thumbnail

vbscript emulator gift for college students

 


What do they say vbscript has become extinct because Microsoft monopolized it and prevented it from developing and I say that this wonderful language is still taught to this day in universities, yes my friend, believe it first, it is still taught in Arab and foreign universities

why  ???

Everyone who has programmed vbscript scripts notices the strength of this language and the ease of writing its lines. It is compared to JavaScript. Its gaps are less. Try for yourself. Put JavaScript in the search https://www.exploit-db.com and then put vbscript and watch the surprise!!!

But Microsoft decided that support for this language is only on internet explorer. This is called monopoly madness, as university students note that even Explorer browsers no longer support this language, as it needs an old browser, and we all know the dangers of using the old version of Explorer, not to mention the endless problems.. .


In this post, my dear brother, I designed a developed simulator to encode the script and bypass the problem of #cookies in old browsers that the trainees suffer from while learning or performing their programming duties, as it is impossible to give you correct results for the operations of saving cookies or cookies


 Also, you can follow a series of vbscript explanation of the basics, my dear brother


Well, in order not to bore you with a lot of idle talk

Download the software source on github

To download the executable file, follow the following path: https://github.com/sadik-fattah/Vbscript_emulator/tree/master

  /vbscripta/vbscripta/bin/Debug

Do not forget the dll file, it is important for the program





thumbnail

Turn your computer into a web server that can be browsed

In this post, we will learn how to connect your computer with a host using no-ip. In fact, what we do is install the IP address and open a port in the router so that visitors can enter and browse our website on the personal server. In this lesson, I used the camel server server. You can use any server. Local and apply the same stages to it. You can also follow a post so that you do not face any problem in installing the Jamal server



Solutions to the problems of the camel server and when it was chosen


Download the Noip from the official website https://www.noip.com/

Watch this video explaining all the details 

 
thumbnail

Fix camel server problems

 

Peace be upon my beloved followers of the blog #Gercif_Security, in this explanation I dedicated it to the camel server or the camel server for several reasons, the first is that it is a free and fast server and it is easy to build a site on it and link it with two domains to turn your computer into a site with visitors (to be honest, it is not the best server, but it is easy to connect)


Apache server from its official website

In case the servers of the official website are busy, you can download it from Mediafire or the latest version from the following link


Link to the official camel server website http://daif.net/camel/







thumbnail

 

PayPal is a commercial website that allows the user to transfer money via the Internet and e-mail to different addresses is clear, and the user can send the money sent to others or transfer it to a bank account The electronic currency service is an alternative to traditional paper methods such as checks or money orders This sounds like a good idea and removes a lot of obstacles. The company was founded by Max Levitchen, Peter Thiel, Elon Musk and Luke Nozick.


Paypal makes payments to sale sites, internet auctions, etc., where there is an additional fee for the site. In October 2002 PayPal became a wholly owned subsidiary of eBay. The company's headquarters is located in California, United States of America.

PayPal is also the world's leading provider of online payment solutions with more than 169 million accounts worldwide. PayPal provides its services in 203 markets and 26 currencies worldwide, making it a strong pillar of global e-commerce by providing payment options across different sites, currencies and languages. PayPal account holders must be 18 or older and have a debit or credit card or A bank account as well as an email address to be able to shop online.


As you can see my honorable brother, PayPal ads promote superior protection for your money and not spying on your account, despite this, your government has every right to check your PayPal balance whenever you want, most of its pages for buying or donating are considered unsafe because simply anyone can build a safety Similar to PayPal




 Inspire the victim that he is on the real PayPal page and can imitate the secure https domain instead of the unsecured domain

 In this post, I will not put replacement resources or any resources that may help hack accounts on PayPal or any different bank. In this post, we will talk about the well-known methods......


  I completed my speech and said that through the PayPal API services, the victim can make the victim pay the donation amount or the amount of purchases, and the payment is actually made, but that information is easy to copy and send to the phone via SMS or to Gmail or even stored in the databases of the hacker. PayPal is considered one of the most Sites have been subjected to attacks, and the best evidence for my words is the latest attacks that were subjected to several sites, including PayPal, so you have to think financially before linking your bank account to your PayPal account.


PayPal is unstable, yet we risk linking it to our bank account and putting our money in it 😰

About