Acamar | A Python3 based single-file subdomain enumerator | Security Testing library
kandi X-RAY | Acamar Summary
kandi X-RAY | Acamar Summary
A Python3 based single-file subdomain enumerator (with barely dependencies; BeautifulSoup is required tho).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Enumerate virustotal
- Enter a path
- Enumerate ptr archive
- Enumerate crt
- Enumerate DNS dumpster
- Enumerate securitytrails
- Enumerate Threatminer API
- Enumerate ThreatCrowd API
- Enumerate certificate names
- Enumerate findsubdomains
- Enumerate rigg io io io
- Enumerate hackertarget
Acamar Key Features
Acamar Examples and Code Snippets
Community Discussions
Trending Discussions on Acamar
QUESTION
So what i have to do is Read from a file and have the user input HR followed by some numbers if the input is found it will print out the line that the input is located i have all that sorted but my problem is my else statement if the HR Code is not found it will print out that it the input was not found but my problem is even if the number they entered was located it will print out the else statement for all of the lines that don't have the number in it. (sorry im shit at explaining stuff) but anyway here is the code.
don't know if this is easier to understand but what i want to do is if the input is found then print out the line, that works fine. But what i need to do is. if the input is not found then i want it to print out that the Input was not found in the file, but i don't want it to print out for every line that is in the file
...ANSWER
Answered 2017-Apr-09 at 03:12Your if . . . else if
is being executed for every line in your input file.
So, if a line in the file matches your input HR Code, the line is printed.
But for all of the other lines that do not match the HR code, the "No Planet . . . Was found" message is printed.
You need to wait until after processing all lines in the file before deciding whether to print the "No Planet . . . Was found" message:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Acamar
You can use Acamar like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page