(Nov-12-2021, 03:23 PM)antmar904 Wrote: So I found the moduels called "logger.py" in the github folder that I downloaded in the following folder path /modules/logger.py
how can I import that since that is what it's looking for?
You shall not import anything,as installation say so most this be run in Docker or virtual environment local.
Docker is easiest way,if i do quick a test it work fine.
root@kali:~# docker pull splunk/attack_range
Using default tag: latest
latest: Pulling from splunk/attack_range
16ec32c2132b: Pull complete
0433ad9bfd9f: Pull complete
7512e89c37fe: Pull complete
ea3ca2410962: Pull complete
dd3f83e1f1e7: Pull complete
4b7b9fe71a9e: Pull complete
c2863730a779: Pull complete
4cd8ea81cf60: Pull complete
Digest: sha256:e7b60de47f8099555d4c4c74156263a6bb3cb079822093324493126315cd339f
Status: Downloaded newer image for splunk/attack_range:latest
docker.io/splunk/attack_range:latest
root@kali:~# docker run -it splunk/attack_range
root@958a1e92a137:/attack_range# python -V
Python 3.8.10
root@958a1e92a137:/attack_range# python attack_range.py configure
________________
|'-.--._ _________:
| / | __ __\\
| | _ | [\_\= [\_\
| |.' '. \.........|
| ( <) ||: :|_
\ '._.' | :.....: |_(o
'-\_ \ .------./
_ \ ||.---.|| _
/ \ '-._|/\n~~\n' | \\
(| []=.--[===[()]===[) |
<\_/ \_______/ _.' /_/
/// (_/_/
|\\ [\\
||:| | I|
|::| | I|
||:| | I|
||:| : \:
|\:| \I|
:/\: ([])
([]) [|
|| |\_
_/_\_ [ -'-.__
snd <] \> \_____.>
\__/
starting configuration for AT-ST mech walker
? select cloud provider aws
The
attack_range.py dos all import as eg
from modules import logger
If i test import now it will work as now all is isolated in Docker environment(with own Python 3.8 version)
root@958a1e92a137:/attack_range# python
Python 3.8.10 (default, Jun 2 2021, 10:49:15)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from modules import logger
>>> logger.__file__
'/attack_range/modules/logger.py'
>>> exit()
Not using Docker you most follow
this
The virtual environment most be activate or it will not find
logger.py
in modules.