Skip to content

Replace --ipaddress and --domain with --target#6

Open
romainrichard wants to merge 2 commits intoPavornoc:masterfrom
romainrichard:master
Open

Replace --ipaddress and --domain with --target#6
romainrichard wants to merge 2 commits intoPavornoc:masterfrom
romainrichard:master

Conversation

@romainrichard
Copy link
Contributor

@romainrichard romainrichard commented Jul 27, 2021

This simplifies the interface, no need for the user to switch arguments,
the script will figure it out itself just like it does with the values
in the file passed with the --file argument.

Factorize the code a bit more:

  • Added get_args() to handle argument parsing
  • Added check_targets() to handle checking targets

This helps keep the main() function short and clean.
It also now allows users to easily call this script without using the
CLI, by writing a new python script:

from investigate import SHODAN, WHOIS, check_targets

check_targets(["abc.com", "1.2.3.4"], [SHODAN, WHOIS])

Move the ip_check() and domain_check() functions to be next to
check_targets(), I think it makes more sense than having those all the
way at the bottom while the other functions related to those are at the
top.

This simplifies the interface, no need for the user to switch arguments,
the script will figure it out itself just like it does with the values
in the file passed with the --file argument.

Factorize the code a bit more:
* Added get_args() to handle argument parsing
* Added check_targets() to handle checking targets
This helps keep the main() function short and clean.
It also now allows users to easily call this script without using the
CLI, by writing a new python script:
```
from investigate import SHODAN, WHOIS, check_targets

check_targets(["abc.com", "1.2.3.4"], [SHODAN, WHOIS])
```

Move the ip_check() and domain_check() functions to be next to
check_targets(), I think it makes more sense than having those all the
way at the bottom while the other functions related to those are at the
top.
@emrekybs
Copy link

hello I am getting
IBM X-Force
----------

X-Force Response Code: 401

why ı did get this response code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants