mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-09 17:51:33 +00:00
removed duplicate entries inside common wordlists (tables & columns) and added a script which does that automatically
This commit is contained in:
parent
c5b1f336ee
commit
f712d2477e
5 changed files with 758 additions and 788 deletions
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()
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# $Id$
|
||||
|
||||
# Copyright (c) 2006-2010 sqlmap developers (http://sqlmap.sourceforge.net/)
|
||||
# See the file 'doc/COPYING' for copying permission
|
||||
|
||||
# Lists all duplicate entries inside a file
|
||||
cat $1 | uniq -d
|
||||
|
|
@ -6,4 +6,4 @@
|
|||
# See the file 'doc/COPYING' for copying permission
|
||||
|
||||
# Adds SVN property 'Id' to project files
|
||||
find ../../. -type f -name "*.py" -exec svn propset svn:keywords "Id" '{}' \;
|
||||
find ../../. -type f -name "*.py" -exec svn propset svn:keywords "Id" '{}' \;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue