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

Nmap engine failed to load a script #1

Open
Ikenahim opened this issue Apr 9, 2020 · 2 comments
Open

Nmap engine failed to load a script #1

Ikenahim opened this issue Apr 9, 2020 · 2 comments

Comments

@Ikenahim
Copy link

Ikenahim commented Apr 9, 2020

I'm writing a python script to automate nmap daily tasks, I'm using python 3.6 and map python installed in my windows. when i run the nmap from command line it works. while from the python script it throws an error:

{'nmap': {'command_line': 'nmap -oX - -p 443 --script=C:/Users/670241893/PycharmProjects/untitled/SSLandTLS/nmap_script/ssl-cert.nse google.com', 'scaninfo': {'error': ["NSE: Failed to load C:/Users/670241893/PycharmProjects/untitled/SSLandTLS/nmap_script/ssl-cert.nse:\r\n...harmProjects/untitled/SSLandTLS/nmap_script/ssl-cert.nse:3: module 'outlib' not found:\r\n\tNSE failed to find nselib/outlib.lua in search paths.\r\n\tno field package.preload['outlib']\r\n\tno file 'C:\Program Files (x86)\Nmap\lua\outlib.lua'\r\n\tno file 'C:\Program Files (x86)\Nmap\lua\outlib\init.lua'\r\n\tno ...

I'm using this method:
import nmap

def nmap_dh_paramater_check():
nm = nmap.PortScanner()
results = nm.scan('google.com', '443', arguments='--script=C:/Users/670241893/PycharmProjects/untitled/SSLandTLS/nmap_script/ssl-cert.nse')
print (results)

what could went wrong here?

@rikosintie
Copy link
Owner

Hello Ikenahim,
Sorry for the delay. For some reason I missed your issue. I will try to take a look over the weekend.

@Majboor
Copy link

Majboor commented Apr 23, 2023

here try this out if the problem doesnt work simple wrapper for many tools feel free to contribute
https://github.com/Tech-Realm/The-Exploiter

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