Giter VIP home page Giter VIP logo

Comments (24)

NotoriousRebel avatar NotoriousRebel commented on July 19, 2024 1

@blshkv would you want to work on this and submit a pull request?

from theharvester.

blshkv avatar blshkv commented on July 19, 2024

I noted that there is a new sqlite database in use. The DB should be generated in homedir ~/.theHarverster
from scratch without any need in a template. The wordlist can be installed into a shared directory.

from theharvester.

NotoriousRebel avatar NotoriousRebel commented on July 19, 2024

@blshkv would you want to create an install.sh for this? There is currently a dockerfile and you can also git clone it. Sorry for the late response!

from theharvester.

blshkv avatar blshkv commented on July 19, 2024

no, that would be a wrong approach. It has to be setup.py which should list the required dependencies and define system location of all files. The tool should also support system-wide installation, i.e. installed under root into /usr/share or /usr/lib{32,64} and a regular user should be able to run it. That would also require to move all write operations (database, outputs) from a current directory into
a current user ~/.theHarvester or similar.

from theharvester.

blshkv avatar blshkv commented on July 19, 2024

Sorry, I don't have bandwidth for development of other tools. Just a simple bug reporting (like this issue) and maintaining hundreds of packages takes a fair amount of time which I could afford.

from theharvester.

L1ghtn1ng avatar L1ghtn1ng commented on July 19, 2024

Hi All, I have updated the documentation for the dependencies but it needs to be merge and when you run the tool for the first time it creates the sqlite DB

from theharvester.

L1ghtn1ng avatar L1ghtn1ng commented on July 19, 2024

@blshkv My changes have been merged can you take a look at the README.md please?

from theharvester.

blshkv avatar blshkv commented on July 19, 2024

Not sure what to look for. Does the tool support system install using setup.py?
No.

Will it only from the current folder? Yes.
So nothing changed

from theharvester.

L1ghtn1ng avatar L1ghtn1ng commented on July 19, 2024

from theharvester.

blshkv avatar blshkv commented on July 19, 2024

I have tried it, still long way to go.

setup.py is a python file, which usually tells you that the module/package you are about to install has been packaged and distributed with Distutils, which is the standard for distributing Python Modules.

This allows you to easily install Python packages. Often it's enough to write:

$ python setup.py install

and the module will install itself.

https://docs.python.org/3/installing/index.html#installing-index

from theharvester.

NotoriousRebel avatar NotoriousRebel commented on July 19, 2024

@blshkv what do you think of the PR for setup.py?

from theharvester.

blshkv avatar blshkv commented on July 19, 2024

I have tried to convert the harvester into a proper python module but this is a major re-design and I'm unable to test all functions. As I said, I have no time to rewrite it, however I will be happy to test your progress. I can also help with minor fixes, once the direction of the development is clear.

from theharvester.

leebaird avatar leebaird commented on July 19, 2024

Please review the new setup.py file that was added. Would like to close out this ticket.

from theharvester.

blshkv avatar blshkv commented on July 19, 2024

Tested and failed. Have you tested at all?
The current setup.py doesn't install wordlists folder and theHarvester.py.
I copied the binary into /usr/bin manually but the tool failed to start:

$ theHarvester.py 
Traceback (most recent call last):
  File "/usr/bin/theHarvester.py", line 3, in <module>
    from discovery import *
  File "/usr/lib64/python3.6/site-packages/discovery/shodansearch.py", line 3, in <module>
    from shodan import exception
ModuleNotFoundError: No module named 'shodan'

You need to convert it into python module, redirect all outputs into user's dir etc . Still long way to go

from theharvester.

blshkv avatar blshkv commented on July 19, 2024

Regarding the wordlists, please use the following example:
derv82/wifite2#102
They used data_files function for this purpose

from theharvester.

NotoriousRebel avatar NotoriousRebel commented on July 19, 2024

@blshkv please try now I tested it after the most recent commit and it seems to be working :)

from theharvester.

blshkv avatar blshkv commented on July 19, 2024

worldlist files are installed into an unusual location: /usr/worldlist now, all other issues are not fixed

from theharvester.

blshkv avatar blshkv commented on July 19, 2024

FYI, you can debug it with the following command:
python3 setup.py install --user and inspect ~/.local/lib64/python3.6

from theharvester.

blshkv avatar blshkv commented on July 19, 2024

#229
I have started to redesign the tool here (spent like 2 hours on it), let's see if you agree with it.

from theharvester.

blshkv avatar blshkv commented on July 19, 2024

https://github.com/vulnersCom/getsploit/pull/14/files

from theharvester.

NotoriousRebel avatar NotoriousRebel commented on July 19, 2024

@blshkv if you are satifised with the changes that have happened feel free to close :)

from theharvester.

blshkv avatar blshkv commented on July 19, 2024

@NotoriousRebel thank you for accepting the patch. That would be the first stage, I can install the tool as a system package now (using root account). The second stage is to redirect all output to a userdir, (something like https://github.com/vulnersCom/getsploit/pull/14/files which I mentioned before) and redirect all output to ~/.theHarvester so a regular user would be able to run it without touching system files

from theharvester.

L1ghtn1ng avatar L1ghtn1ng commented on July 19, 2024

@blshkv Would you agree that this issue could be closed now? As I think we now for fill the subject of this thread and open a new thread to do with the other bits and pieces that you have mentioned.

from theharvester.

blshkv avatar blshkv commented on July 19, 2024

Ok, sure. Thanks for accepting my patch once again

from theharvester.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.