Skip to content

Commit

Permalink
fix StringSplit loop condition error; add README
Browse files Browse the repository at this point in the history
  • Loading branch information
potomak committed Aug 25, 2010
1 parent ec4b883 commit a4d4e21
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/*
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# makeWay

makeWay will poison the gateway's IP entry for all hosts in the network. It will replace the victim's gateway ARP entry with the hosts own MAC address, disconnecting connection between gateway and the hosts. In a sense it is a DOS attack. As the name applies when you run it you will have all the bandwidth to your self.

Please do not abuse the software, i wrote it because i use a network where people abuse torrents, at times you can't even access your email account. I do not have access to gateway and i needed a way to control bandwidth.

## Installation

There are no pre build packages availible. For now you have to build it your self. **Only depency is pcap library**.

To build it from source

* use `make linux` on linux
* use `make darwin` on Mac OS X


## Usage

* `./makeWay en1 -t 600`

inject packages every 10 minutes.

* `./makeWay en1`

inject packages every 3 secods. (This renders the network useless for everyone except you.)

* `./makeWay en1 scan`

just make an ARP Sweep to see whose online.

* `./makeWay en1 192.68.16.15`

inject packages every 3 secods. (This renders the network useless for everyone except you and 192.168.16.15.)

## Supported OS's

* Linux - Debian Lenny, Ubuntu 8.10
* Mac OS X - Mac OS X 10.5
6 changes: 4 additions & 2 deletions makeWay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include "ArpFactory.h"
#include "NetworkInterface.h"

#define VERSION 1.1

using namespace std;
time_t lastAdded;

Expand Down Expand Up @@ -94,7 +96,7 @@ map<string,string> parseCommandLineArguments(int argc,
char **argv,
vector<string> &whiteList ){
if ( argc <= 1 ){
cout<< "makeWay v 1.0" <<endl;
cout<< "makeWay v " << VERSION <<endl;
cout<< "usage: interface [scan] [ whiteListIPs ] " <<endl;
exit(0);
}
Expand All @@ -106,7 +108,7 @@ map<string,string> parseCommandLineArguments(int argc,
options["interface"] = interface;
options["injectInterval"] = "3";

cout<< argc <<endl;
//cout<< argc <<endl;

if (argc > 2 ){
string scan(argv[2]);
Expand Down
2 changes: 1 addition & 1 deletion util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using namespace std;

vector<string> StringSplit(string str, string delim){
vector<string> results;
unsigned int cutAt;
int cutAt;
while( (cutAt = str.find_first_of(delim)) != str.npos ){

if(cutAt > 0){
Expand Down

0 comments on commit a4d4e21

Please sign in to comment.