Skip to content

Commit

Permalink
Changed Help Manual
Browse files Browse the repository at this point in the history
  • Loading branch information
hash3liZer committed Sep 21, 2019
1 parent 46d5a4c commit 6526bbb
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 10 deletions.
32 changes: 24 additions & 8 deletions pull.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,30 @@
Args Description Default
-h, --help Throwback this help manaul False
-i, --interface Monitor Mode Interface to use. None
-c, --channel Channel on which to send Hopping
deauthentication frames
-e, --essids Essids to Jam None
-a, --access-points Mac of Access Points to Jam None
-s, --stations Mac of Stations to Jam None
-f, --filters List of Mac addresses to not Jam. None
--verbose Print Verbose Messages. False
-i, --interface Monitor Mode Interface to use
for scanning & deauthentication None
-c, --channel Channel to put monitor interface
on All
-a, --accesspoints Comma-seperated list of access-
points to target All
-s, --stations Comma-seperated list of stations
to target All
-f, --filters Comma-seperated list of Mac-
addresses to skip target None
-p, --packets Number of deauthentication
packets to send per turn. 25
-d, --delay Delay b/w transmission of pkts 0.1s
-r, --reset To refresh the target list after
the list has reached a specific
number, like --reset 5 None
--code (Int) Deauthentication Code
to send with packets 7
--world Scan for channels from 1-14,
default is 1-11 False
--no-broadcast Don't send deauthentication
packets to broadcast address False
--verbose Print device manufacturing
details False
"""

class PULL:
Expand Down
10 changes: 8 additions & 2 deletions wifijammer.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ def engage(self):
class PARSER:

def __init__(self, opts):
self.help = self.help(opts.help)
self.world = opts.world
self.exceptions = self.exceptions(opts.nbroadcast)
self.verbose = opts.verbose
Expand All @@ -322,6 +323,10 @@ def __init__(self, opts):
self.reset = opts.reset if ((opts.reset == 0) or (opts.reset >= 5)) else pull.halt("Reset Must Be >= 5. ")
self.code = opts.code if ((opts.code >= 1) and (opts.code <= 66)) else pull.halt("Code Must Be Greater Greater >= 1 and <= 66")

def help(self, _help):
if _help:
pull.help()

def exceptions(self, nbroadcast):
retval = []
if not nbroadcast:
Expand Down Expand Up @@ -391,16 +396,17 @@ def confirmMon(iface):
pull.halt("Interface Not Provided. Specify an Interface!", True, pull.RED)

def main():
parser = argparse.ArgumentParser(add_help=True)
parser = argparse.ArgumentParser(add_help=False)

parser.add_argument('-h', '--help' , dest="help" , default=False, action="store_true")
parser.add_argument('-i', '--interface' , dest="interface", default="", type=str)

parser.add_argument('-c', '--channel' , dest="channel" , default=0 , type=int)
parser.add_argument('-a', '--accesspoints', dest="aps" , default="", type=str)
parser.add_argument('-s', '--stations' , dest="stations", default="", type=str)
parser.add_argument('-f', '--filters' , dest="filters" , default="", type=str)

parser.add_argument('-p', '--packets' , dest="packets" , default=20 , type=int)
parser.add_argument('-p', '--packets' , dest="packets" , default=25 , type=int)
parser.add_argument('-d', '--delay' , dest="delay" , default=0.1, type=int)
parser.add_argument('-r', '--reset' , dest="reset" , default=0 , type=int)
parser.add_argument('--code' , dest="code" , default=7 , type=int)
Expand Down

0 comments on commit 6526bbb

Please sign in to comment.