File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python
2+
3+ """
4+ $Id: fingerprint.py 2463 2010-11-30 22:40:25Z inquisb $
5+
6+ Copyright (c) 2006-2010 sqlmap developers (http://sqlmap.sourceforge.net/)
7+ See the file 'doc/COPYING' for copying permission
8+ """
9+
10+ # Removes duplicate entries in wordlist like files
11+
12+ import sys
13+
14+ if len (sys .argv ) > 0 :
15+
16+ items = list ()
17+ f = open (sys .argv [1 ], 'r' )
18+
19+ for item in f .readlines ():
20+ item = item .strip ()
21+ if item in items :
22+ if item :
23+ print item
24+ items .append (item )
25+
26+ f .close ()
27+
28+ f = open (sys .argv [1 ], 'w+' )
29+ f .writelines ("\n " .join (items ))
30+ f .close ()
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 66# See the file 'doc/COPYING' for copying permission
77
88# Adds SVN property 'Id' to project files
9- find ../../. -type f -name " *.py" -exec svn propset svn:keywords " Id" ' {}' \;
9+ find ../../. -type f -name " *.py" -exec svn propset svn:keywords " Id" ' {}' \;
You can’t perform that action at this time.
0 commit comments