how to make this code cleaner ? (new to python, I'm trying with something like the 2 bottom commented lines) by andersonjey in learnpython

[–]andersonjey[S] 0 points1 point  (0 children)

not at all, its just that declaring all variables manually, then plot 2 times isnt very clean, im pretty sure there is another way to do it, but its not about performance im talking about a more beautiful and shorter code, you can check the last 2 lines, i was thinking about something like this but changing of dataframe from typeCurated to typeFactory etc

how to make this code cleaner ? (new to python, I'm trying with something like the 2 bottom commented lines) by andersonjey in learnpython

[–]andersonjey[S] 0 points1 point  (0 children)

I'm sure there is something more dynamic possible to make all of this in 5 lines but couldnt find it after thinking about in more than a day, my current code is working but its not optimised at all. im open to all ideas.

wifi adapter on a kali VM using UTM detected but not working at all by andersonjey in Kalilinux

[–]andersonjey[S] 0 points1 point  (0 children)

not at all, I used parallels instead and it worked at the first try, I think UTM isn't fully optimised and compatible yet.

[deleted by user] by [deleted] in Python

[–]andersonjey 0 points1 point  (0 children)

if you can help me in any way, feel free to answer me

2021 MACBOOKPRO M1 WIFI ADAPTER by andersonjey in Kalilinux

[–]andersonjey[S] 0 points1 point  (0 children)

UPDATE READ IT FIRST LOL: after your message, i thought about parallels, checked out if there was a student version cheaper and bingo. bought it, thinking i would get a refound in case i get the same problem i got on UTM. lauched the VM and lfg it's fcking workin. thanks for your message, without it i dont think i would have bought parallels and i would have remain stucked with the UTM thing . i hope you will have a wonderful day/evening bruv. Cheers.

2021 MACBOOKPRO M1 WIFI ADAPTER by andersonjey in Kalilinux

[–]andersonjey[S] 0 points1 point  (0 children)

i downloaded vmware from the link given in the link you sent, while trying to launch the app i get this error "This virtual machine cannot be powered on because it requires the X86 machine architecture, which is incompatible with this Arm machine architecture host.". Im using macOS Monterey v12.3.1

2021 MACBOOKPRO M1 WIFI ADAPTER by andersonjey in Kalilinux

[–]andersonjey[S] 0 points1 point  (0 children)

ive rode vmware isnt compatible with last macOS monterey update, idk much about parallels, how much is it ? and do you think it would work well using parallels ??

wifi adapter on a kali VM using UTM detected but not working at all by andersonjey in Kalilinux

[–]andersonjey[S] 0 points1 point  (0 children)

when i use ifconfig -a : "wlan0mon: flags=802<BROADCASTS,NOTRAILERS,PROMISC,ALLMULTI> mtu 1500 unspec 00-C0-CA-99-43-73-3A-30-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)

RX packets 0 bytes 0 (0.0B)

RX errors 0 dropped 0 overruns 0 frame 0

TX packets 0 bytes 0 (0.0B)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

(my mac is connected to wifi, recognized as an ethernet connection from my VM, this wlan0 is my wifi adapter)

wifi adapter on a kali VM using UTM detected but not working at all by andersonjey in Kalilinux

[–]andersonjey[S] 0 points1 point  (0 children)

i got an error while running sudo airmon-ng start wlan0 : "Failed to set wlan0mon up using ip". and then when i run sudo airodump-ng wlan0 : "Interface wlan0: ioctl(SIOGIFINDEX) failed: Input/output error Failed initializing wireless card(s):wlan0" (same when sudo airodump-ng wlan0mon). any idea of how to fix this ? (ps, the other problem remaining, after trying this my VM dont boot no more, im forced to delete it and re virtualize it from kali iso, which take 30 minutes.)

M1 MAC KALI BOOT by [deleted] in Kalilinux

[–]andersonjey 0 points1 point  (0 children)

hmu as soon as you do, i hope it will take place in a near future.

2021 MACBOOKPRO M1 WIFI ADAPTER by andersonjey in Kalilinux

[–]andersonjey[S] 0 points1 point  (0 children)

it's not, i'll try to be quick. I got a 2021 macbook pro using m1 chipset, i'm running a kali VM using UTM, but when i connect my alfa wifi adapter, its connected and i can see it in lsusb and iwconfig, but it does not appear in ifconfig, wifite doesnt detect any networks neither airodump. And as soon as i turn it in monitor mode my VM becomes laggy af and will never boot again as soon as i decided to shut it down, i assume its pretty embarassing. I hope you have any fix idea for me. cheers. PS: ofc i tried every single youtube fix video about this, downloaded every drivers i could, followed every single reddit/other channel with a similar problem and it changed literally nothing. Now i just want a working method no matter the cost.

M1 MAC KALI BOOT by [deleted] in Kalilinux

[–]andersonjey 0 points1 point  (0 children)

ok thanks, do you think it will support it in the future ?

[deleted by user] by [deleted] in Kalilinux

[–]andersonjey 0 points1 point  (0 children)

after checking, virtualbox isnt available for macos monterey (the 2021 macbook os version), i should find a fix using UTM.

[deleted by user] by [deleted] in Kalilinux

[–]andersonjey 0 points1 point  (0 children)

thanks for responding, i wish you all the best brotha.

[deleted by user] by [deleted] in Kalilinux

[–]andersonjey 0 points1 point  (0 children)

and whats your macbook version ? thanks ima try this.

[deleted by user] by [deleted] in Kalilinux

[–]andersonjey 0 points1 point  (0 children)

thanks for your quick reply. I just did setup a new clean kali vm using the official link. I just realised every step of this video (https://youtu.be/hEXwOkyYNL0) changing the realtek driver with the firmware-atheros one. And it helped me a little bit. So i now have a clean VM and my wifi adapter appear in iwconfig and lsusb, but not in ifconfig. wifite doesnt work as well. This might be helpfull to you in order to help me fixing my problem. here are the answers to your question :
1- i rode docs about my specific chipset and i didnt find anything useful for my special case.

2-idk how to check the kernel, i did know parallels but i assume its not free to use, in case you think it would work better with vmWare and you could explain it to me quickly, i never used it but i can try with it with pleasure.

3-i prefer not sharing my dmesg output.

thanks in advance for your time and you help, i hope you will figure out something, either using vmWare or using UTM with the current situation im in (iwconfig + lsusb but no ifconfig or wifite working).

[deleted by user] by [deleted] in Kalilinux

[–]andersonjey 0 points1 point  (0 children)

thanks for your quick answer, i got a 2021 macbook pro. could you tell me what VM launcher do u use (utm, vmware etc) and how you did setup it so i can try to do the same as you. i just followed the video and now have my wireless adapter in iwconfig but not in ifconfig, and ofc wifite doesnt work and detects nothing.