Comments (3)
Thanks for the bug report. So according to the Python documentation, a generator in python should always raise a StopIteration
exception when there's no more values in the generator. Some built-in functions like for
automatically handle this exception and terminate the loop. Since I was calling next
directly, the uncaught exception gets raised. Now the crazy part is that the error and this is some of the oldest code in changeme and I'm baffled why this doesn't throw an exception all of the time and you're the first to hit this error.
Until 1.0.3 gets published, swapping line 260 with protocols = [proto for proto in os.walk('creds')][0][1]
or running the development branch should fix the issue.
- https://docs.python.org/2/library/exceptions.html#exceptions.StopIteration
- https://stackoverflow.com/questions/16465313/how-yield-catches-stopiteration-exception
from changeme.
Looks like I'm getting a newish error now. I tried both the swapping line 260 with the new code and running the dev branch.
Traceback (most recent call last):
File "/opt/changeme/changeme.py", line 6, in
core.main()
File "/opt/changeme/changeme/core.py", line 48, in main
creds = load_creds(config)
File "/opt/changeme/changeme/core.py", line 260, in load_creds
protocols = [ proto for proto in os.walk('creds')][0][1]
IndexError: list index out of range
from changeme.
Ok, I can finally reproduce it (I was shooting in the dark earlier). It looks like you're running /opt/changeme/changeme.py
from outside of the project directory /opt/changeme/
. So if you cd /opt/changeme/
then run ./changeme.py -d PTDS_scan_1.xml
it should work better for you.
I'm going to rename this issue to better reflect the issue and work on getting this resolved for the next release.
Thanks again for the bug report and troubleshooting.
from changeme.
Related Issues (20)
- Broken pipe errors HOT 5
- Name field within cch.yml is incorrect (conflicts with MSSQL) HOT 2
- AttributeError: 'module' object has no attribute 'banner' HOT 3
- Selenium PhantomJS driver is deprecated HOT 2
- User agent header evaluation order corner case HOT 1
- Did n't find tomcat credentials HOT 9
- Error Cannot Allocate Memory HOT 5
- Issue while adding default credential detection for Aruba's ClearPass HOT 6
- delete this HOT 1
- --shodan_query flag use cases HOT 1
- Option to disable screenshots
- Option to stop bruteforcing after at least one valid creds pair for each target was found HOT 3
- stucks on big input file HOT 4
- add to ssh.yml new crediantial , but, ssh credential not found HOT 2
- Adding RabbitMQ scanning capability HOT 1
- no module named cerberus HOT 1
- ImportError: No module named cerberus HOT 3
- Docker image is out of date
- Add custom ports to specific services
- pyodbc ... error HOT 2
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 changeme.