mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 04:31:30 +00:00
removed duplicate entries inside common wordlists (tables & columns) and added a script which does that automatically
This commit is contained in:
30
extra/shutils/duplicates.py
Normal file
30
extra/shutils/duplicates.py
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
"""
|
||||
$Id: fingerprint.py 2463 2010-11-30 22:40:25Z inquisb $
|
||||
|
||||
Copyright (c) 2006-2010 sqlmap developers (http://sqlmap.sourceforge.net/)
|
||||
See the file 'doc/COPYING' for copying permission
|
||||
"""
|
||||
|
||||
# Removes duplicate entries in wordlist like files
|
||||
|
||||
import sys
|
||||
|
||||
if len(sys.argv) > 0:
|
||||
|
||||
items = list()
|
||||
f = open(sys.argv[1], 'r')
|
||||
|
||||
for item in f.readlines():
|
||||
item = item.strip()
|
||||
if item in items:
|
||||
if item:
|
||||
print item
|
||||
items.append(item)
|
||||
|
||||
f.close()
|
||||
|
||||
f = open(sys.argv[1], 'w+')
|
||||
f.writelines("\n".join(items))
|
||||
f.close()
|
||||
Reference in New Issue
Block a user