ish-app / ish

Linux shell for iOS
https://ish.app
Other
16.94k stars 892 forks source link

Nmap needs netlink #166

Open BrammyH opened 5 years ago

BrammyH commented 5 years ago

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 commented 5 years ago

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

bao3 commented 5 years ago

Could anyone fix this issue on “nmap” command ?

tbodt commented 5 years ago

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

renatohcampos commented 2 years ago

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 commented 2 years ago

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

ifuchs commented 2 years ago

Any progress on nmap?

gitdev-bash commented 2 years ago

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 commented 2 years ago

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

LaplaceSoda commented 2 years ago

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 commented 2 years ago

Is there a link for the YouTube video?

JiuZero commented 1 year ago

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

gitdev-bash commented 1 year ago

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

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 commented 1 year ago

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

Can you please tell

JiuZero commented 1 year ago

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

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

How ???

2020NT commented 4 months ago

I can only use 127.0.0.1 and nothing else.

unluckycord commented 2 months ago

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