Skip to content

Commit

Permalink
wiki output
Browse files Browse the repository at this point in the history
  • Loading branch information
leostat committed Mar 16, 2017
1 parent ec70de7 commit 8756ed8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Example: rtfm.py -c rtfm -t linux -R help -r git -pP -d
```
Its pretty much a simple search program, nothing to fancy, examples include:

Search for the command psexec.py
Search for the command rtfm
```
./rtfm.py -c rtfm
Expand Down
6 changes: 4 additions & 2 deletions rtfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
## * Swap to more sophisticated SQL, quite innefficent at the moment
## * Create a HTML page : H
## * create a WIKI format : W
## * Drop to SQL Shell : s
## * Template engine(autofill [user] : A user = innes, pass = password, attacker = 1.1.1.1, victim = 2.2.2.2
## * Make code more sane and betterize the layout
##
Expand Down Expand Up @@ -412,7 +411,10 @@ def PrintThing(ret_cmd):
print str(ret_cmd[2])
print "++++++++++++++++++++++++++++++\n"
elif options.printer is 'w':
print " = "+str(options.cmd)+" = "
print "= "+str(ret_cmd[2])+" = "
print " "+str(ret_cmd[1])
print str(ret_cmd[4].replace(',',', '))
print str(ret_cmd[5].replace(',', '\n'))
elif options.printer is 'P':
table_data = [\
["Command ID ", str(ret_cmd[0])],
Expand Down

0 comments on commit 8756ed8

Please sign in to comment.