laramies / theHarvester

E-mails, subdomains and names Harvester - OSINT
http://www.edge-security.com/
10.81k stars 1.96k forks source link

starting harvester #236

Closed Compl3xion closed 5 years ago

Compl3xion commented 5 years ago

Here is what happens when i type theharvester

> theharvester
Traceback (most recent call last):
  File "C:\Python\bin\InformationGathering\theHarvester\theHarvester.py", line 5, in <module>
    from theHarvester import __main__
  File "C:\Python\bin\InformationGathering\theHarvester\theHarvester\__main__.py", line 94
    print(f'\033[94m[*] Target: {word} \n \033[0m')
                                                 ^
SyntaxError: invalid syntax

i've never encountered this problem before when using it, but now i get this. OS details windows 7 using with pentestbox

Update:I reinstalled pentestbox, but with metasploit this time

it seems to work now. which is weird due to the fact that i've

reinstalled it aboout 20 times. but yeah it works. I've uninstalled

everythng related to pentestbox and some other tools,non-related to

pentest box; Many thanks to all of you for trying to help me.

Compl3xion commented 5 years ago

i also re installed everything but i still get this.

NotoriousRebel commented 5 years ago

Are you using a version of Python3.6 or above?

Compl3xion commented 5 years ago

Seems like its pentestbox then. I just checked, and its using python 2.7.11. i most likely have to get 3.6 then. darn pentestbox :/ theharvester was working recently though, and i had just finished updating all my tools so i thought something was wrong. Thank you for your help.(maybe i need to email pentestbox. something feels a little off here too. i notice that it does come with python 3.6 but isnt using it with the harvester) ~Compl3xion

ssolidus commented 5 years ago

@Compl3xion have you tried python3 theHarvester.py?

Compl3xion commented 5 years ago

@Compl3xion have you tried python3 theHarvester.py?

yes i then receive the following in pertest box Capture (should be an easy fix :) for me

ssolidus commented 5 years ago

You need to run it as 1 command, not inside the python shell.

I'd recommend you learn a bit more about how scripts and filesystems work before you proceed

Compl3xion commented 5 years ago

You need to run it as 1 command, not inside the python shell.

I'd recommend you learn a bit more about how scripts and filesystems work before you proceed

Sir i already ran it without the python shell. and still receive the same error. any other suggestions than that :/

L1ghtn1ng commented 5 years ago

Can you please provide a screenshot of what you are doing and what OS you are using please?

On Thu, 2019-04-18 at 11:14 -0700, Compl3xion wrote:

You need to run it as 1 command, not inside the python shell. I'd recommend you learn a bit more about how scripts and filesystems work before you proceed

Sir i already ran it without the python shell. and still receive the same error. any other suggestions than that :/ — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Compl3xion commented 5 years ago

i fixed it

On Thu, 18 Apr 2019 at 11:34, J.Townsend notifications@github.com wrote:

Can you please provide a screenshot of what you are doing and what OS you are using please?

On Thu, 2019-04-18 at 11:14 -0700, Compl3xion wrote:

You need to run it as 1 command, not inside the python shell. I'd recommend you learn a bit more about how scripts and filesystems work before you proceed

Sir i already ran it without the python shell. and still receive the same error. any other suggestions than that :/ — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/laramies/theHarvester/issues/236#issuecomment-484631666, or mute the thread https://github.com/notifications/unsubscribe-auth/ALJ5KGQF56X6RJE2CDRLNYDPRC5M7ANCNFSM4HGDHQJA .

ssolidus commented 5 years ago

His original problem is that he was running Python 2.7.

His new problem was that he was running it like this


$ python
>>>theharvester
L1ghtn1ng commented 5 years ago

As this is now fixed closing