flashnuke / deadnet

A dos (denial of service) attack for local networks using dead router attack (IPv6) and ARP attack (IPv4) simultaneously
GNU General Public License v3.0
68 stars 6 forks source link

error during setup -> You must specify a valid interface name. #7

Open kekkodance opened 11 months ago

kekkodance commented 11 months ago

I've given the app root permissions but it seems like python complains about an interface name

kekkodance commented 11 months ago

(android)

flashnuke commented 11 months ago

what model and android version are you using?

kekkodance commented 11 months ago

13, latest security update and quarterly year update

it's a Custom ROM based on AOSP called Kenvyra, for the Mi 9T (davinci)

running with KernelSU, not Magisk

kekkodance commented 10 months ago

any fixes?

flashnuke commented 10 months ago

I wasn't able to reproduce this unfortunately, but I merged this pr https://github.com/flashnuke/deadnet/pull/8 delete the old apk, install the new one and try to run the app again, making sure you grant all permissions required

when this error happens again, the traceback should be printed on your screen, please share it here

kekkodance commented 10 months ago

the app just shows "DeadNet" in ascii now and crashes, i can't get into the main ui. (i could get into the main ui once and got told that it couldn't find an SSID, then i allowed location access and it crashes)

kekkodance commented 10 months ago

got it to work-ish. forgot i had to enable root in kernelsu. now this happens: Screenshot_20231102-112146_Deadnet

flashnuke commented 10 months ago

got it to work-ish. forgot i had to enable root in kernelsu. now this happens: Screenshot_20231102-112146_Deadnet

  1. Does this happen when you're connected to both cellular network and wifi? Can you try leaving only wifi on?
  2. Are location permissions granted?
  3. Is location service on?
kekkodance commented 10 months ago

i think something's wrong in your new code, just revert the commits since turning on location makes the app crash, with or without mobile data it still makes that error

flashnuke commented 10 months ago

thanks, I reverted the commit

the fact the app cannot fetch the SSID name, assuming it is connected to one, means it might be an issue with location permissions / services, which are required since Android API 27

i will try to recompile the APK for a newer version (yours is API 33, assuming you use Android 13, and buildozer by default builds for 27) once i will be able to, but that will only be in a couple of days since i'm away from home :)

meanwhile, it would help me immensely if you run the apk with adb logcat and share the log results here, only if it's possible ofc

kekkodance commented 10 months ago

i do not have access or the capability to run that for now, but i can tell you that the interface name most commonly is "wlan0". try selecting that

kekkodance commented 10 months ago

all i can gather is this: Screenshot_20231110-123230_App Manager

flashnuke commented 10 months ago

i do not have access or the capability to run that for now, but i can tell you that the interface name most commonly is "wlan0". try selecting that

the interface name should be fetched using the netifaces lib

I compiled the app for Android API 33, under the ver_33 branch: https://github.com/flashnuke/deadnet/blob/ver_33/apk/bin/deadnet-1.0-arm64-v8a_armeabi-v7a-debug.apk

is this one also making problems?

kekkodance commented 10 months ago

this one doesn't crash. the issue is worse now as the wifi name doesn't even appear anymore. i think there's something wrong in the code, not the dependency Screenshot_20231111-170930_Deadnet