Giter Site home page Giter Site logo

arptools's Introduction

ARPTools

现在完成了基础功能,包括ARP广播,ARP攻击,数据转发,DNS查询。但是数据转发的速度很慢,而且我仍未找到解决办法。你需要使用root权限来运行本程序。

Now it accomplished the basic requirement, includes ARP broadcast, ARP attack, data transmission and DNS query. But the speed of data transmission is slow and I still can not solve this problem. You have to run this program by root.

Command Line Interface

在你启动程序之后,你可以从目录界面的五个选项中选择一个。

After you start the program, you can choose 1 option from the menu which includes 5 options.

ARP Broadcast

这个功能允许你广播ARP请求来寻找同一个局域网内的其他机器,现在你可以通过在与程序相同的目录下新建一个“im.config”文件来修改你的配置。格式如下:

ip=192.168.0.1
mac=aa:bb:cc:dd:ee::ff
gateway=192.168.0.254

It allows you to broadcast ARP request and find other machines in the LAN. Now you can create a file named "im.config" to modify your settings in the same directory with the program. Here is the format:

ip=192.168.0.1
mac=aa:bb:cc:dd:ee::ff
gateway=192.168.0.254

ARP Attack

这个功能允许你选择一个受害者然后让他或者她的机器无法连接网络,你可以通过按回车键来结束攻击。

It allows you to select a victim and make him or her can not connect to the Internet, and you can enter ENTER key to stop the attack.

Data Transmission

这个功能允许你选择一个受害者然后转发它的流量到你的机器上,然后你可以使用Wireshark或者其他的抓包软件来查看这些包。但你一旦使用这个功能,这次攻击将不会停止除非你退出程序。

It allows you to select a victim and transmit his or her data to your machine, and you can use wireshark or other packet capture tools to see what he or she doing. But once you select this option, the attack will not stop UNLESS you cancel the program.

DNS Query

现在它可以用来查询一个域名的IPV4地址或者IPV6地址或CNAME(别名)。

Now it can work for querying a domain name's IPv4 address, IPv6 address and CNAME. Enter 5 at menu, and enter the domain name, you can get the answer later.

arptools's People

Contributors

lab-zjt avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

arptools's Issues

error: ‘std::atomic’ has not been declared

During the build of the project by

cmake .
make

the following output is returned:

[ 16%] Building CXX object CMakeFiles/ARPtools.dir/main.cpp.o
In file included from /home/athena/test/ARPTools/mycli.hpp:4,
                 from /home/athena/test/ARPTools/main.cpp:2:
/home/athena/test/ARPTools/myarpt.hpp:78:99: error: ‘std::atomic’ has not been declared
   78 | void ARPBroadcastMultiThread(EtherPack arpPack, IMMAP *mapp, byte beginIndex, byte endIndex, std::atomic<int> & count);
      |                                                                                                   ^~~~~~
/home/athena/test/ARPTools/myarpt.hpp:78:105: error: expected ‘,’ or ‘...’ before ‘<’ token
   78 | ARPBroadcastMultiThread(EtherPack arpPack, IMMAP *mapp, byte beginIndex, byte endIndex, std::atomic<int> & count);
      |                                                                                                    ^

make[2]: *** [CMakeFiles/ARPtools.dir/build.make:76: CMakeFiles/ARPtools.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/ARPtools.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

For solving it, the file myarpt.hpp must include:

#include <atomic>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.