|
28 | 28 | from lib.core.exception import SqlmapUserQuitException |
29 | 29 | from lib.core.settings import DUMMY_SEARCH_USER_AGENT |
30 | 30 | from lib.core.settings import DUCKDUCKGO_REGEX |
31 | | -from lib.core.settings import DISCONNECT_SEARCH_REGEX |
32 | 31 | from lib.core.settings import GOOGLE_REGEX |
33 | 32 | from lib.core.settings import HTTP_ACCEPT_ENCODING_HEADER_VALUE |
34 | 33 | from lib.core.settings import UNICODE_ENCODING |
@@ -109,21 +108,12 @@ def _search(dork): |
109 | 108 | if not retVal: |
110 | 109 | message = "no usable links found. What do you want to do?" |
111 | 110 | 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" |
114 | 112 | choice = readInput(message, default='1') |
115 | 113 |
|
116 | | - if choice == '3': |
| 114 | + if choice == '2': |
117 | 115 | 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': |
127 | 117 | url = "https://duckduckgo.com/d.js?" |
128 | 118 | url += "q=%s&p=%d&s=100" % (urlencode(dork, convall=True), gpage) |
129 | 119 | regex = DUCKDUCKGO_REGEX |
|
0 commit comments