yakuza8 / peniot

PENIOT: Penetration Testing Tool for IoT
https://senior.ceng.metu.edu.tr/2019/peniot/
MIT License
205 stars 48 forks source link

Could not install Peniot #7

Open duttaprayakhi opened 2 years ago

duttaprayakhi commented 2 years ago

Tried to install Peniot from the commands given in the github repository but unable to install it. Following errors were shown -

Cloning into 'peniot'... Warning: Permanently added the ECDSA host key for IP address '13.234.210.38' to the list of known hosts. git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

Please look into the matter ASAP.

tansly commented 2 years ago

You'll need to clone using HTTPS instead of SSH.

git clone https://github.com/yakuza8/peniot.git
duttaprayakhi commented 2 years ago

Thank you ma'am, We have successfully cloned PenIOT. But now we are facing issues with the modules in the python scripts while running it.

tansly commented 2 years ago

Unfortunately I’m not familiar with the project. I came across the issue by coincidence.

On 22 Feb 2022, at 3:46 PM, duttaprayakhi @.***> wrote:

 Thank you ma'am, We have successfully cloned PenIOT. But now we are facing issues with the modules in the python scripts while running it.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

yakuza8 commented 2 years ago

Hello @duttaprayakhi,

Firstly, let me thank you for your interest. I just reviewed the installation and tried. I found out that pygame was causing a problem to prevent other dependencies from installation. I put a constraint on its version and tried again and it is working now.

Please note that, I updated Build section and added Execution section where I really suggest you have a separate virtual environment since the installed dependencies could cause some troubles among your existing Python libraries.

Also, please let me know if you still have problem and attach the logs about the error so I could take a look at it.

duttaprayakhi commented 2 years ago

Thank you for responding to our query.

But now again we are facing issues with the Python libraries. Modules such as Utils.SnifferUtil, Entity.attack, etc are not getting imported.

Please look into the matter ASAP.

LailaAfreen commented 2 years ago

@yakuza8 I tried installing peniot using : python3 setup.py install, however, i get UserWarning: Unknown Distribution option: 'platform'" and syntax error at several places an example of which is as follows:

byte-compiling build/bdist.linux-x86_64/egg/src/GUI/tkinter.py to tkinter.cpython-38.pyc File "build/bdist.linux-x86_64/egg/src/GUI/tkinter.py", line 139 print file_name ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(file_name)?

and then finally, towards the end:

Hunting dependencies... /bin/sh: 1: sdl-config: not found /bin/sh: 1: sdl-config: not found /bin/sh: 1: sdl-config: not found WARNING: "sdl-config" failed! Package freetype2 was not found in the pkg-config search path. Perhaps you should add the directory containingfreetype2.pc' to the PKG_CONFIG_PATH environment variable No package 'freetype2' found Package freetype2 was not found in the pkg-config search path. Perhaps you should add the directory containing freetype2.pc' to the PKG_CONFIG_PATH environment variable No package 'freetype2' found Package freetype2 was not found in the pkg-config search path. Perhaps you should add the directory containingfreetype2.pc' to the PKG_CONFIG_PATH environment variable No package 'freetype2' found WARNING: "pkg-config freetype2" failed! /bin/sh: 1: freetype-config: not found /bin/sh: 1: freetype-config: not found /bin/sh: 1: freetype-config: not found WARNING: "freetype-config" failed! error: Setup script exited with Unable to run "sdl-config". Please make sure a development version of SDL is installed.`

It would be great if you can look into this as soon as possible and let me know your opinion on this