Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8c88a09

Browse files
committed
disconnect.me turned into a DuckDuckGo proxy
1 parent 09ddb3b commit 8c88a09

3 files changed

Lines changed: 6 additions & 19 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.1.10.1"
22+
VERSION = "1.1.10.2"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
@@ -100,9 +100,6 @@
100100
# Regular expression used for extracting results from DuckDuckGo search
101101
DUCKDUCKGO_REGEX = r'"u":"([^"]+)'
102102

103-
# Regular expression used for extracting results from Disconnect Search
104-
DISCONNECT_SEARCH_REGEX = r'<p class="url wrapword">([^<]+)</p>'
105-
106103
# Dummy user agent for search (if default one returns different results)
107104
DUMMY_SEARCH_USER_AGENT = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0"
108105

lib/utils/search.py

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
from lib.core.exception import SqlmapUserQuitException
2929
from lib.core.settings import DUMMY_SEARCH_USER_AGENT
3030
from lib.core.settings import DUCKDUCKGO_REGEX
31-
from lib.core.settings import DISCONNECT_SEARCH_REGEX
3231
from lib.core.settings import GOOGLE_REGEX
3332
from lib.core.settings import HTTP_ACCEPT_ENCODING_HEADER_VALUE
3433
from lib.core.settings import UNICODE_ENCODING
@@ -109,21 +108,12 @@ def _search(dork):
109108
if not retVal:
110109
message = "no usable links found. What do you want to do?"
111110
message += "\n[1] (re)try with DuckDuckGo (default)"
112-
message += "\n[2] (re)try with Disconnect Search"
113-
message += "\n[3] quit"
111+
message += "\n[2] quit"
114112
choice = readInput(message, default='1')
115113

116-
if choice == '3':
114+
if choice == '2':
117115
raise SqlmapUserQuitException
118-
elif choice == '2':
119-
url = "https://search.disconnect.me/searchTerms/search?"
120-
url += "start=nav&option=Web"
121-
url += "&query=%s" % urlencode(dork, convall=True)
122-
url += "&ses=Google&location_option=US"
123-
url += "&nextDDG=%s" % urlencode("/search?q=%s&setmkt=en-US&setplang=en-us&setlang=en-us&first=%d&FORM=PORE" % (urlencode(dork, convall=True), (gpage - 1) * 10), convall=True)
124-
url += "&sa=N&showIcons=false&filterIcons=none&js_enabled=1"
125-
regex = DISCONNECT_SEARCH_REGEX
126-
else:
116+
elif choice == '1':
127117
url = "https://duckduckgo.com/d.js?"
128118
url += "q=%s&p=%d&s=100" % (urlencode(dork, convall=True), gpage)
129119
regex = DUCKDUCKGO_REGEX

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ e8e9fd4f224ead0caa1569312b5b2582 lib/core/optiondict.py
4646
d8e9250f3775119df07e9070eddccd16 lib/core/replication.py
4747
785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py
4848
40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py
49-
00551710c935268b4f54ea28e5220712 lib/core/settings.py
49+
6161dfdfa4899bc9fe4b0ca10af24382 lib/core/settings.py
5050
d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py
5151
2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py
5252
effc153067a00bd43461bfc1cdec1122 lib/core/target.py
@@ -111,7 +111,7 @@ e76a08237ee6a4cd6855af79610ea8a5 lib/utils/htmlentities.py
111111
9d8c858417d356e49e1959ba253aede4 lib/utils/pivotdumptable.py
112112
8520a745c9b4db3814fe46f4c34c6fbc lib/utils/progress.py
113113
2c3638d499f3c01c34187e531f77d004 lib/utils/purge.py
114-
4bd7dd4fc8f299f1566a26ed6c2cefb5 lib/utils/search.py
114+
7610a89573b32291a4bea66d4ee10a5c lib/utils/search.py
115115
fe2be081f924abf08767ed89ab12b418 lib/utils/sqlalchemy.py
116116
caeea96ec9c9d489f615f282259b32ca lib/utils/timeout.py
117117
6fa36b9742293756b226cddee11b7d52 lib/utils/versioncheck.py

0 commit comments

Comments
 (0)