M0tHs3C / Argo

Multi camera gathering and exploiting tool
GNU General Public License v3.0
51 stars 19 forks source link

Issues with running the script for Hikvision and avtech #1

Closed Lizardbone closed 4 years ago

Lizardbone commented 4 years ago

Traceback (most recent call last): File "argo.py", line 54, in argo.main() File "argo.py", line 48, in main selection(self,int(selectionInput)) File "argo.py", line 20, in selection exploitMenu.exploitMenu(self) File "/root/Desktop/Argo/exploit/exploitMenu.py", line 71, in exploitMenu avtech.avtechExploit(self) File "/root/Desktop/Argo/exploit/avtechExploit.py", line 15, in avtechExploit target_host = match1.group() AttributeError: 'NoneType' object has no attribute 'group'

M0tHs3C commented 4 years ago

Must add this error In the try catch, may I ask you if you have used the gathering section I know this error and it's caused by the host list being empty or the first line being empty

Lizardbone commented 4 years ago

Yes. I have tried using the gathering session but keep getting errors for almost all the options. see the below: Options 1: Traceback (most recent call last): File "argo.py", line 54, in argo.main() File "argo.py", line 48, in main selection(self,int(selectionInput)) File "argo.py", line 12, in selection shodanSearch.shodanGath(self) File "/root/Desktop/Argo/lib/shodanSearch.py", line 44, in shodanGath response = api.search(query) File "/usr/local/lib/python3.7/dist-packages/shodan/client.py", line 419, in search return self._request('/shodan/host/search', args) File "/usr/local/lib/python3.7/dist-packages/shodan/client.py", line 242, in _request raise APIError(error) shodan.exception.APIError: Invalid API key Options2 File "argo.py", line 54, in argo.main() File "argo.py", line 48, in main selection(self,int(selectionInput)) File "argo.py", line 14, in selection censysSearch.censysGath(self) File "/root/Desktop/Argo/lib/censysSearch.py", line 18, in censysGath secret = censys_list[1] IndexError: list index out of range

Option3: [+]Loading all host... Traceback (most recent call last): File "argo.py", line 54, in argo.main() File "argo.py", line 48, in main selection(self,int(selectionInput)) File "argo.py", line 16, in selection upTester.Tcp(self) File "/root/Desktop/Argo/modules/upTester.py", line 17, in Tcp target_host = match1.group() AttributeError: 'NoneType' object has no attribute 'group' Option4: File "argo.py", line 54, in argo.main() File "argo.py", line 48, in main selection(self,int(selectionInput)) File "argo.py", line 18, in selection testerMenu.testerMenu(self) File "/root/Desktop/Argo/modules/testerMenu.py", line 17, in testerMenu hikTester.hikTester(self) File "/root/Desktop/Argo/modules/hikvisionTester.py", line 14, in hikTester response = requests.get('http://' + ip_to_check + '/security/users/1?' + BackdoorAuthArg) File "/usr/local/lib/python3.7/dist-packages/requests/api.py", line 75, in get return request('get', url, params=params, kwargs) File "/usr/local/lib/python3.7/dist-packages/requests/api.py", line 60, in request return session.request(method=method, url=url, kwargs) File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 519, in request prep = self.prepare_request(req) File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 462, in prepare_request hooks=merge_hooks(request.hooks, self.hooks), File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 313, in prepare self.prepare_url(url, params) File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 390, in prepare_url raise InvalidURL("Invalid URL %r: No host supplied" % url) requests.exceptions.InvalidURL: Invalid URL 'http:///security/users/1?auth=YWRtaW46MTEK': No host supplied For Options 5, when you select avtech for bruteforce, there is a loop for the same process.

M0tHs3C commented 4 years ago

You didn't set correctly the API key I've wrote how to manually save it on the readme But again For censys In the file Delete everything On the first line the first key of censys On the second one the second key For shodan just paste the key on the very first line

Il lun 30 set 2019, 19:32 Lizardbone notifications@github.com ha scritto:

Yes. I have tried using the gathering session but keep getting errors for almost all the options. see the below: Options 1: Traceback (most recent call last): File "argo.py", line 54, in argo.main() File "argo.py", line 48, in main selection(self,int(selectionInput)) File "argo.py", line 12, in selection shodanSearch.shodanGath(self) File "/root/Desktop/Argo/lib/shodanSearch.py", line 44, in shodanGath response = api.search(query) File "/usr/local/lib/python3.7/dist-packages/shodan/client.py", line 419, in search return self._request('/shodan/host/search', args) File "/usr/local/lib/python3.7/dist-packages/shodan/client.py", line 242, in _request raise APIError(error) shodan.exception.APIError: Invalid API key Options2 File "argo.py", line 54, in argo.main() File "argo.py", line 48, in main selection(self,int(selectionInput)) File "argo.py", line 14, in selection censysSearch.censysGath(self) File "/root/Desktop/Argo/lib/censysSearch.py", line 18, in censysGath secret = censys_list[1] IndexError: list index out of range

Option3: [+]Loading all host... Traceback (most recent call last): File "argo.py", line 54, in argo.main() File "argo.py", line 48, in main selection(self,int(selectionInput)) File "argo.py", line 16, in selection upTester.Tcp(self) File "/root/Desktop/Argo/modules/upTester.py", line 17, in Tcp target_host = match1.group() AttributeError: 'NoneType' object has no attribute 'group' Option4: File "argo.py", line 54, in argo.main() File "argo.py", line 48, in main selection(self,int(selectionInput)) File "argo.py", line 18, in selection testerMenu.testerMenu(self) File "/root/Desktop/Argo/modules/testerMenu.py", line 17, in testerMenu hikTester.hikTester(self) File "/root/Desktop/Argo/modules/hikvisionTester.py", line 14, in hikTester response = requests.get('http://' + ip_to_check + '/security/users/1?' + BackdoorAuthArg) File "/usr/local/lib/python3.7/dist-packages/requests/api.py", line 75, in get return request('get', url, params=params, kwargs) File "/usr/local/lib/python3.7/dist-packages/requests/api.py", line 60, in request return session.request(method=method, url=url, kwargs) File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 519, in request prep = self.prepare_request(req) File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 462, in prepare_request hooks=merge_hooks(request.hooks, self.hooks), File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 313, in prepare self.prepare_url(url, params) File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 390, in prepare_url raise InvalidURL("Invalid URL %r: No host supplied" % url) requests.exceptions.InvalidURL: Invalid URL 'http:///security/users/1?auth=YWRtaW46MTEK': No host supplied For Options 5, when you select avtech for bruteforce, there is a loop for the same process.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/M0tHs3C/Argo/issues/1?email_source=notifications&email_token=AH2THN5QJXSZCVVRPPBYEQLQMIZ3BA5CNFSM4I3O7SU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD76ODLY#issuecomment-536666543, or mute the thread https://github.com/notifications/unsubscribe-auth/AH2THNYZNAB2RA3LXQNHEVTQMIZ3BANCNFSM4I3O7SUQ .

M0tHs3C commented 4 years ago

There is a loop obviously because u do not have any host How can u except to exploit something if you don't have hosts Paste your two key in the file like Xxxxxxxxxx Xxxxxcccccc