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 needs netlink #166

Open
BrammyH opened this issue Dec 5, 2018 · 20 comments
Open

Nmap needs netlink #166

BrammyH opened this issue Dec 5, 2018 · 20 comments

Comments

@BrammyH
Copy link

BrammyH commented Dec 5, 2018

This may be something unsupported due to hardware access, but I thought I'd see what happens if I try to run Nmap. I get the following error:

Starting Nmap 7.70 ( https://nmap.org ) at 2018-12-05 14:42 UTC               
route_dst_netlink: cannot create AF_NETLINK socket: Invalid argument          
iPad:~#   

@tbodt
Copy link
Member

tbodt commented Dec 6, 2018

nmap requires a large number of networking APIs to be implemented in order to run, so it's going to be low priority.

@bao3
Copy link

bao3 commented Jan 7, 2019

Could anyone fix this issue on “nmap” command ?

@tbodt
Copy link
Member

tbodt commented Jan 7, 2019

Could you? That would be awesome, it would close 3 issues 😄

@tbodt tbodt changed the title Nmap generates error. Nmap needs netlink Sep 23, 2019
@tbodt tbodt mentioned this issue Mar 24, 2020
@renatohcampos
Copy link

renatohcampos commented Oct 7, 2021

I would like to contribute to solving this issue during my spare time, if possible.

Might someone be able to point me in the right direction?

Should I look into communication between user space and kernel space in general, or something more specific?

I've tried simple things like adding libnl (and libel-dev) packages but still getting the same error.

@tbodt
Copy link
Member

tbodt commented Oct 7, 2021

The socket code is in fs/sock.c, and the documentation for netlink is in the netlink(7) and rtnetlink(7) manpages.

@ifuchs
Copy link

ifuchs commented Feb 20, 2022

Any progress on nmap?

@gitdev-bash
Copy link

gitdev-bash commented Mar 18, 2022

I migrated from an ancient ish alpine image that I installed before ish was on the App Store. Nmap and traceroute were working perfectly in that version. Now that I pulled the new image to do a fresh start, I found out that nmap and traceroute are now broken. Also ping is also doing some interesting stuff when it can’t reach the specified host.

@ant0nioli
Copy link

I'm having the same problem with the 1.2.3 (298).
<3 this app.
Thank you all for contributing.

@LaplaceSoda
Copy link

Try to install AF_NETLINK in the same root folder of nmap so it might work smoothly

kindly cd and the app u wish to run
Then add nmap and the AF_NETLINK

then after try to execute the py or the bash as per the requirements

How to install the AF_NETLINK or netmiko?
Could anyone explain the process?
Is it really help?

@wakeUPslow
Copy link

Is there a link for the YouTube video?

@JiuZero
Copy link

JiuZero commented Feb 24, 2023

一个好消息,我好像找到方法能够在iSH上运行nmap了
Good news, I seem to have found a way to run nmap on iSH.
image

@gitdev-bash
Copy link

一个好消息,我好像找到方法能够在iSH上运行nmap了 Good news, I seem to have found a way to run nmap on iSH. image

Would you like to share how you did it?

@JiuZero
Copy link

JiuZero commented Mar 4, 2023

You need to perform these three steps on iSH to switch to users under ordinary permissions.
apk add nmap
adduser iSH
su iSH
Then you can use nmap on iSH normally.
But you will receive a new error:
Strange read error from 127.0.0.1 (1 - 'Operation not permitted')
Problem binding to interface , errno: 22
socket_bindtodevice: Invalid argument

@esjokeryt
Copy link

一个好消息,我好像找到方法能够在iSH上运行nmap了
Good news, I seem to have found a way to run nmap on iSH.
image

Can you please tell

@JiuZero
Copy link

JiuZero commented Jul 5, 2023

一个好消息,我好像找到方法能够在iSH上运行nmap了
Good news, I seem to have found a way to run nmap on iSH.
image

Can you please tell

我在前面有提到如何解决这个问题~你可以往前翻看我之前的评论
I mentioned how to solve this problem earlier ~ You can look forward to my previous comments.

@Hamzaalkhaldi
Copy link

一个好消息,我好像找到方法能够在iSH上运行nmap了
Good news, I seem to have found a way to run nmap on iSH.
image

How ???

@2020NT
Copy link

2020NT commented May 11, 2024

I can only use 127.0.0.1 and nothing else.

@unluckycord
Copy link

You need to perform these three steps on iSH to switch to users under ordinary permissions. apk add nmap adduser iSH su iSH Then you can use nmap on iSH normally. But you will receive a new error: Strange read error from 127.0.0.1 (1 - 'Operation not permitted') Problem binding to interface , errno: 22 socket_bindtodevice: Invalid argument

you need to run the command with the -Pn option for this to work, I got it to work on my iPhone 15 for a local server on both its local and public IP
IMG_1178

@Musta-kin
Copy link

I think it’s all the same output couse I’ve tried it on more than 3 ips put still the same output

@Musta-kin
Copy link

The root function make it easier but the iOS system doesn’t work with it as well

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