Comments (24)
@blshkv would you want to work on this and submit a pull request?
from theharvester.
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.
@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.
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.
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.
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.
@blshkv My changes have been merged can you take a look at the README.md please?
from theharvester.
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.
from theharvester.
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.
@blshkv what do you think of the PR for setup.py?
from theharvester.
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.
Please review the new setup.py file that was added. Would like to close out this ticket.
from theharvester.
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.
Regarding the wordlists, please use the following example:
derv82/wifite2#102
They used data_files
function for this purpose
from theharvester.
@blshkv please try now I tested it after the most recent commit and it seems to be working :)
from theharvester.
worldlist files are installed into an unusual location: /usr/worldlist
now, all other issues are not fixed
from theharvester.
FYI, you can debug it with the following command:
python3 setup.py install --user
and inspect ~/.local/lib64/python3.6
from theharvester.
#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.
https://github.com/vulnersCom/getsploit/pull/14/files
from theharvester.
@blshkv if you are satifised with the changes that have happened feel free to close :)
from theharvester.
@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.
@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.
Ok, sure. Thanks for accepting my patch once again
from theharvester.
Related Issues (20)
- [Other] Problem Installing theHarvester on AWS Cloud9 HOT 3
- theHarvester cannot find api-keys.yaml in theHarvester root directory in Docker container HOT 4
- Theharvester is not working properely after installing api key in api-key.yaml HOT 4
- MyPy CI failures HOT 1
- Road Map Question HOT 1
- Traceback (most recent call last): HOT 2
- Error & others HOT 2
- Read proxies.yaml from /etc/theHarvester/proxies.yaml HOT 9
- Can't start the instrument HOT 5
- [Bug] Cannot use Google as a source anymore. HOT 2
- Issues to run theHarvester HOT 6
- [Bug|Feature Request|Other] Short Description of Issue
- lease add screenshots to help explain your problem. **System Information (System that tool is running on):** - OS: [e.g. Windows10] - Version [e.g. 2.7] **Additional context** Add any other context about the problem here.[Bug|Feature Request|Other] Short Description of Issue HOT 1
- [Feature Request ] Consider adding Hudson Rock free cybercrime intelligence integration HOT 1
- [Bug|Feature Request|Other] I'm unable to run theHarvester on my parrot vm ,my main machine is Mac air m1. And everything goes fine until and unless I'm started doing cehv12 labs on it. Kindly help as I'm preparing my cel v12 practical cert without labs HOT 2
- [Bug] Brave module broken
- [Bug|Feature Request|Other] Short Description of Issue
- Terminal Color
- async def google_workaround(visit_url: str) -> bool | str: TypeError: unsupported operand type(s) for |: 'type' and 'type' HOT 3
- [Feature Request] Hudson Rock Cybercrime Intelligence Free Integration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from theharvester.