Giter VIP home page Giter VIP logo

pykkon's Introduction

BSMP-2016-ISCSI-Packet-Injection

This is a repo that contains code for creating a system to hijack and insert data into an iSCSI stream

INSTALL

  1. Open Target and Initiator folders containing .Vagrantfile and run: vagrant up
  2. On Target:
  • make sure iscsitarget service is running: netstat -tl
  • download, add execution permissions and run the iSCSI-target-setup.sh if you want to test a new file being available in the LUN 0. Also run the script on up after halting the machine.
  • Execute ip a sh and note down your IP address
  1. On Initiator, run:
    • Run the iSCSI-initiator-setup.sh in the root folder. That script contains commands to discover and login to a target LUN. You have to provide the target machine IP as required by the script.
    • after login, a disk is created to represent the iSCSI target LUN. Such disk can be on sdb, sdc or sdd, accordingly with the order it was found. Check which one represents the iSCSI Target LUN running the command "sudo fdisk -l". The disk representing the iSCSI Target LUN has 2MB of size.
  • Once the disk was identified, open /mnt directory to access the Target LUN. A mounting command was issued to serve the disk in such folder.
  • Execute ip a sh and note down your IP address + If it is not, set the mtu to 5000. issue ifconfig to check and ifconfig enp0s8 mtu 5000 to set.
  1. MiTM machine:
    • Download .ova machine on https://drive.google.com/open?id=0B4MZu1rZKHeDaC1WUkdGc1BhZGc
    • import appliance on Virtualbox. Use username as root and password as admin.
    • Insert target and initiator IPs on mitm-arp.py script, located in /root/BSMP-2016-ISCSCI-Packet-Injection/Scapy and run to begin arp poisoning.
    • Insert target and initiator IPs and MACs on ip_forward.py and run to start the packet sniffing, forwarding and injection. You have to run the mitm-arp.py and the ip_forward.py before running the iSCSI-initiator-setup.sh.
    • If it is not, set the mtu to 5000. issue ifconfig to check and ifconfig eth0 mtu 5000 to set.
  2. Profit!

pykkon's People

Contributors

lucasdeassis avatar wpstudart avatar jhajek avatar mcpavan avatar israelcosta avatar

Stargazers

Lucas Rosa avatar Gustavo Moraes avatar Halê Valente Silva avatar  avatar  avatar

Watchers

 avatar James Cloos avatar Lenard Fitzpatrick avatar  avatar  avatar Halê Valente Silva avatar  avatar  avatar  avatar  avatar

Forkers

keunglh spofa

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.