ish icon indicating copy to clipboard operation
ish copied to clipboard

Nmap needs netlink

Open BrammyH opened this issue 6 years ago • 18 comments

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:~#   

BrammyH avatar Dec 05 '18 14:12 BrammyH

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

tbodt avatar Dec 06 '18 02:12 tbodt

Could anyone fix this issue on “nmap” command ?

bao3 avatar Jan 07 '19 07:01 bao3

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

tbodt avatar Jan 07 '19 15:01 tbodt

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.

renatohcampos avatar Oct 07 '21 20:10 renatohcampos

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

tbodt avatar Oct 07 '21 20:10 tbodt

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

Ukaghar avatar Dec 29 '21 03:12 Ukaghar

Of its not working try to add netmiko

Ukaghar avatar Dec 29 '21 03:12 Ukaghar

Any progress on nmap?

ifuchs avatar Feb 20 '22 18:02 ifuchs

Its working

and able to perform the said activity as required great experaice while perfoming prefreble activities

if required any assisatance feel free to text will revert over the same

join our freelancing program (give and take)

Sent from my iPhone

On Feb 21, 2022, at 12:12 AM, ifuchs @.***> wrote:

 Any progress on nmap?

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

Ukaghar avatar Mar 03 '22 09:03 Ukaghar

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.

gitdev-bash avatar Mar 18 '22 16:03 gitdev-bash

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

ant0nioli avatar Apr 01 '22 14:04 ant0nioli

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?

LaplaceSoda avatar Jun 12 '22 07:06 LaplaceSoda

Dear Team, Wrt kindly go through youtube already video related to the same concern is uploaded

And please complete process accordingly and then if you face any concerns related let us know we will help you to reslove

Thanking you, Ukaghar

Sent from my iPhone

On Jun 12, 2022, at 12:41 PM, LaplaceSoda @.***> wrote:

 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?

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

Ukaghar avatar Jun 15 '22 10:06 Ukaghar

Is there a link for the YouTube video?

wakeUPslow avatar Sep 15 '22 01:09 wakeUPslow

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

JiuZero avatar Feb 24 '23 15:02 JiuZero

一个好消息,我好像找到方法能够在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?

gitdev-bash avatar Mar 04 '23 19:03 gitdev-bash

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

JiuZero avatar Mar 04 '23 23:03 JiuZero

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

Can you please tell

esjokeryt avatar Jul 05 '23 13:07 esjokeryt

一个好消息,我好像找到方法能够在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.

JiuZero avatar Jul 05 '23 15:07 JiuZero

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

How ???

Hamzaalkhaldi avatar Sep 12 '23 19:09 Hamzaalkhaldi