Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Feeds - pystemon #3

Open
Phil-ThePower-Pearce opened this issue Sep 17, 2019 · 7 comments
Open

No Feeds - pystemon #3

Phil-ThePower-Pearce opened this issue Sep 17, 2019 · 7 comments

Comments

@Phil-ThePower-Pearce
Copy link

Hi,
Ive added 2 new screens for pystemon... one for the app and one for the feeder
activated the . ./AILENV/bin/activate in both

ran the python2 ./pystemon.py in one
in the other I ran the feeder script

Both look like their running ok
pystemon is using pastebin seems to identify things to download but no feeds or queues

if I use pastebin_pro after whitelisting the IP i get
[2019-09-17 10:56:54,712] Retry 75/100 for http://pastebin.com/api_scrape_item.php?i=WkYLDfVT
[2019-09-17 10:56:54,826] Failed to download the page because of other HTTPlib error proxy error http://pastebin.com/api_scrape_item.php?i=WkYLDfVT trying again.

can someone poke me in the right direction?

@gallypette
Copy link
Member

Hi Phil,
Could you please try with python3?

@Phil-ThePower-Pearce
Copy link
Author

(AILENV) ubuntu@host:~/pystemon$ python3 ./pystemon.py
ERROR: Cannot import the yaml Python library. Are you sure it is installed?

@gallypette
Copy link
Member

Looks like pystemon's requirements are not installed, try:

pip3 install -r requirements.txt

@Phil-ThePower-Pearce
Copy link
Author

Strange, I did run that.
Failed to download the page because of other HTTPlib error proxy error http://pastebin.com/api_scrape_item.php?i=WUMjJhqW trying again.

@Terrtia Terrtia transferred this issue from CIRCL/AIL-framework Sep 17, 2019
@viszsec
Copy link

viszsec commented Dec 29, 2020

Looks like pystemon's requirements are not installed, try:

pip3 install -r requirements.txt

gally,

I have installed the requirements..but when i try to run with ./pystemon.py or even with python3, this came out..any idea whats going on?

(AILENV) ail@ail:~/ail-framework/pystemon$ python3 ./pystemon.py
File "./pystemon.py", line 69
exit('You need python version 2.7 or newer.')
^
TabError: inconsistent use of tabs and spaces in indentation

@gallypette
Copy link
Member

Oops, pystemon is python2 not 3.
On 20.04 I installed it with

virtualenv -p python2 venv
. ./venv/bin/activate
pip install -r requirements.txt

But then I run into this issue #4

@viszsec
Copy link

viszsec commented Jan 4, 2021

Oops, pystemon is python2 not 3.
On 20.04 I installed it with

virtualenv -p python2 venv
. ./venv/bin/activate
pip install -r requirements.txt

But then I run into this issue #4

Followed the same as you did and got this error with python2.

(venv) ail@ail:~/ail-framework/pystemon$ python2 ./pystemon.py
./pystemon.py:868: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
yamlconfig = yaml.load(open(configfile))
Site: safebin.net is disabled.
Site: slexy.org is enabled, adding to pool...
Site: pastebin.com is enabled, adding to pool...
Site: gist.github.com is disabled.
Site: pastebin.com_pro is disabled.
Site: codepad.org is disabled.
[2021-01-04 03:14:21,126] Using default IP address
[2021-01-04 03:14:21,127] Using default IP address
[2021-01-04 03:14:21,128] Downloading list of new pastes from slexy.org. Will check again in 22 seconds
[2021-01-04 03:14:21,128] Downloading url: http://slexy.org/recent with proxy: None and user-agent: None
[2021-01-04 03:14:21,129] Downloading url: http://slexy.org/recent with proxy: None and user-agent: None
[2021-01-04 03:14:21,130] Downloading list of new pastes from pastebin.com. Will check again in 41 seconds
[2021-01-04 03:14:21,131] Downloading url: http://pastebin.com/archive with proxy: None and user-agent: None
[2021-01-04 03:14:21,132] Downloading url: http://pastebin.com/archive with proxy: None and user-agent: None
[2021-01-04 03:14:21,241] Thread for pastebin.com crashed unexpectectly, recovering...: 'tuple' object has no attribute 'text'
[2021-01-04 03:14:21,241] Traceback (most recent call last):
File "./pystemon.py", line 131, in run
last_pasties = self.get_last_pasties()
File "./pystemon.py", line 151, in get_last_pasties
htmlPage = response.text
AttributeError: 'tuple' object has no attribute 'text'

[2021-01-04 03:14:22,151] Thread for slexy.org crashed unexpectectly, recovering...: 'tuple' object has no attribute 'text'
[2021-01-04 03:14:22,151] Traceback (most recent call last):
File "./pystemon.py", line 131, in run
last_pasties = self.get_last_pasties()
File "./pystemon.py", line 151, in get_last_pasties
htmlPage = response.text
AttributeError: 'tuple' object has no attribute 'text'

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

No branches or pull requests

3 participants