Giter Site home page Giter Site logo

attacktoolkit's Introduction

Attacktoolkit

  • Different attack scripts for PBA
  • Program will change the ttl value and stored the packet in file

Prerequisite

sudo apt-get install libpcap-dev

How to compile and run for ttl attack

  • The program is inside ttl folder
  • gcc onebyte.c -lpcap
  • ./a.out input_file outputfile

Note: input file here is the captured pcap file

Pcap format to run the wireshark on pcap

outputfile of above program will act as a input for text2pcap

  • outputfile.pcap is generated from text2pcap tool it requires the input file in certain order which is in inputfile.pcap

  • text2pcap -d inputfile outputfile

To get specific range of packet

editcap -r oldfile newfile 1-10

Tcp Sequence details

  • Tcp sequence number starts form 39th byte (4 byte length)
  • Ack number starts from 43rd byte (4 bytes)
  • These numbers are relative
  • To get the absolute packet length (Ack of receiver - sequence of sender to decode the next seq)

Tcp segement length to predict the next sequence

  • The program is inside tcpseg folder
  • output of new_fourbyte program will give the requires seg and ack number to get the tcp segment length

Program to get the TCP seg length

  • Program name hex2dec.c
  • compilation: gcc hex2dec -lm
  • The output is the absolute value of segment length

Run both the attacks in one

  • chmod +x toolkit.sh
  • run ./toolkit.sh

attacktoolkit's People

Contributors

anandgarg91 avatar

Watchers

 avatar

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.