• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

arpspoof: command not found

by admin

ARPspoof is used to send fake ARP messages to a victim’s machine, tricking it into sending its traffic to the attacker’s machine or another gateway on the network. The following is the syntax used in the arpspoof tool:

# arpspoof –i [interface] -c [host ip] -t [target ip] [host ip] -r
  • -i: Allows you to specify an interface.
  • -c: Specify a hardware address.
  • -t: Specify the target, such as the default gateway.
  • host: Specify the host to intercept packets.
  • -r: Allows you to capture a bidirectional flow of traffic.

To work with Arpspoof, you need to make sure it is installed. Arpspoof is a part of the dnsiff family, so if you install dnsiff, you will get arpspoof as well. You might get below error if dnsiff is not installed onto your system.

arpspoof: command not found

you may install the dnsiff package as shown below as per your choice of distribution.

Distribution Command
Debian apt-get install dsniff
Ubuntu apt-get install dsniff
Arch Linux pacman -S dsniff
Kali Linux apt-get install dsniff
Fedora dnf install dsniff
Raspbian apt-get install dsniff

However, before everything works, you need to make sure IP forwarding is enabled on the box you plan to use inline. This is because, by default, the system will not forward that packet back on the wire. To accomplish this, I just make a change via sysctl:

# sysctl -w net.ipv4.ip_forward=1

Conclusion

Using arpsoof, the Pentester is able to spoof the media access control (MAC) address of the router to trick a victim, making the other user on the network believe the pentester’s machine is now the router or default gateway.

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to Disable or set SELinux to Permissive mode
  2. etckeeper: command not found
  3. killall Command Examples in Linux
  4. gh pr: Manage GitHub pull requests from the command-line
  5. pkginfo: command not found
  6. colordiff: A tool to colorize diff output
  7. jmap Command Examples
  8. light: command not found
  9. Audit rules for monitoring Copy, move, delete and kill Commands In Linux
  10. gimp: GNU image manipulation program

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright