• We are an English-only forum. Selling threads should have samples, or permanent ban.

import python module to metasploit , huawei router HG532

privatetermin

Second Lieutenant
RaidForum.co
Joined
Sep 19, 2023
Messages
3
Reaction score
0
Credits
0
hi,

i have been struggling with importing python file i found it by searchsploit into MSFconsole
(i tried also downloading it from exploit db its the same)

the file :

after searching I found this :
Huawei router HG532 and the file is 43414.py

i created a folder inside /root/.msf4/moudles/exploitdb named exploits and made another folder hardware inside it and another folder webapps inside the last ...and copied the python file to the path /root/.msf4/modules/exploitdb/exploits/hardware/webapps
finally updated the database using :
updatedb

when i run MSF console again
the number of exploits has not been increased and when i search for it i cant find it

i tried to insert 2 lines on the top in the file
the first :
#!/usr/bin/env python3
the second:
from Metasploit import module

i used the info provided from metasploit site under "writing external python modules"



i also tried to run the file as python3 and python and it shows syntax errors
(my python is the latest version)

i need help plzzzzzzz man


my insta strang_.ers
 
Back
Top Bottom