Open supashot opened 4 years ago
I've managed to get bettercap working by switching mon0
to wlan0
in configuration.
I tested it with sudo airodump-ng --band abg mon0
and when I couldn't get anything, I tried sudo airodump-ng --band abg wlan0
and it worked.
Disabling monitor causes seg. fault. This is connected with #952
After flashing and first boot I changed only the name and setup BT. Since then no activities on the screen neither any mood face changes on my P0w. I sued the official supported hardware: P0w and waveshare v2.
I have the same issue on my P3+ first book ok a lot of activities then after the changes nothing too. This issue happens either in manual or auto mode.
On P0W: I flashed from windows, from mac, changed sd cards. I can boot and connect http and ssh but no activity on screen, I have internet connection after changing the resolv.conf. I also saw it upgraded pwngrip. I can run bettercap and see some wireless network. I let run hours and no activities, no handshakes captured (pi@pwnagotchi:~ $ sudo ls /root/handshakes/ empty!)
Here is the dmsg: [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.19.93-Re4son+ (root@kali-pi-dev-0) (gcc version 6.3.0 20170516 (Debian 6.3.0-18)) #1 Wed Jan 8 14:55:22 AEDT 2020 [ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache [ 0.000000] OF: fdt: Machine model: Raspberry Pi Zero W Rev 1.1 [ 0.000000] Memory policy: Data cache writeback [ 0.000000] cma: Reserved 8 MiB at 0x1e400000 [ 0.000000] On node 0 totalpages: 126976 [ 0.000000] Normal zone: 1116 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 126976 pages, LIFO batch:31 [ 0.000000] random: get_random_bytes called from start_kernel+0x94/0x4a8 with crng_init=0 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 125860 [ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:AC:54:5E vc_mem.mem_base=0x1fa00000 vc_mem.mem_size=0x20000000 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait modules-load=dwc2,g_ether [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Memory: 482740K/507904K available (7211K kernel code, 676K rwdata, 2180K rodata, 460K init, 805K bss, 16972K reserved, 8192K cma-reserved) [ 0.000000] Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xdf800000 - 0xff800000 ( 512 MB) lowmem : 0xc0000000 - 0xdf000000 ( 496 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .text : 0x(ptrval) - 0x(ptrval) (7212 kB) .init : 0x(ptrval) - 0x(ptrval) ( 460 kB) .data : 0x(ptrval) - 0x(ptrval) ( 677 kB) .bss : 0x(ptrval) - 0x(ptrval) ( 806 kB) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] ftrace: allocating 25738 entries in 76 pages [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000032] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns [ 0.000095] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns [ 0.000226] bcm2835: system timer (irq = 27) [ 0.000648] Console: colour dummy device 80x30 [ 0.001290] console [tty1] enabled [ 0.001372] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792) [ 0.060408] pid_max: default: 32768 minimum: 301 [ 0.060998] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.061060] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.062738] Disabling memory control group subsystem [ 0.062979] CPU: Testing write buffer coherency: ok [ 0.064342] Setting up static identity map for 0x8200 - 0x8238 [ 0.065828] devtmpfs: initialized [ 0.077525] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5 [ 0.077989] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.078067] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.079467] pinctrl core: initialized pinctrl subsystem [ 0.081229] NET: Registered protocol family 16 [ 0.084663] DMA: preallocated 1024 KiB pool for atomic coherent allocations [ 0.092577] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers. [ 0.092652] hw-breakpoint: maximum watchpoint size is 4 bytes. [ 0.092821] Serial: AMBA PL011 UART driver [ 0.096117] bcm2835-mbox 2000b880.mailbox: mailbox enabled [ 0.142190] bcm2835-dma 20007000.dma: DMA legacy API manager at (ptrval), dmachans=0x1 [ 0.142289] bcm2835-dma 20007000.dma: DMA legacy API manager at (ptrval), dmachans=0x1 [ 0.144889] SCSI subsystem initialized [ 0.145217] usbcore: registered new interface driver usbfs [ 0.145362] usbcore: registered new interface driver hub [ 0.145622] usbcore: registered new device driver usb [ 0.160977] raspberrypi-firmware soc:firmware: Attached to firmware from 2020-01-06 13:05, variant start_cd [ 0.170997] raspberrypi-firmware soc:firmware: Firmware hash is f3e39fed4763ce4efbffabb2d4787aaacddeda0f [ 0.183668] clocksource: Switched to clocksource timer [ 0.286151] VFS: Disk quotas dquot_6.6.0 [ 0.286336] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.286702] FS-Cache: Loaded [ 0.287079] CacheFiles: Loaded [ 0.306339] NET: Registered protocol family 2 [ 0.307713] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes) [ 0.307841] TCP established hash table entries: 4096 (order: 2, 16384 bytes) [ 0.307957] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) [ 0.308080] TCP: Hash tables configured (established 4096 bind 4096) [ 0.308276] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.308342] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.308790] NET: Registered protocol family 1 [ 0.309930] RPC: Registered named UNIX socket transport module. [ 0.309990] RPC: Registered udp transport module. [ 0.310022] RPC: Registered tcp transport module. [ 0.310050] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.312356] hw perfevents: no irqs for PMU, sampling events not supported [ 0.312482] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available [ 0.316878] Initialise system trusted keyrings [ 0.317338] workingset: timestamp_bits=14 max_order=17 bucket_order=3 [ 0.334123] FS-Cache: Netfs 'nfs' registered for caching [ 0.335577] NFS: Registering the id_resolver key type [ 0.335675] Key type id_resolver registered [ 0.335711] Key type id_legacy registered [ 0.335765] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.348023] jitterentropy: Initialization failed with host not compliant with requirements: 2 [ 0.348106] Key type asymmetric registered [ 0.348140] Asymmetric key parser 'x509' registered [ 0.348277] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250) [ 0.348812] io scheduler noop registered [ 0.348869] io scheduler deadline registered (default) [ 0.349543] io scheduler cfq registered [ 0.349597] io scheduler mq-deadline registered (default) [ 0.349634] io scheduler kyber registered [ 0.352626] bcm2708_fb soc:fb: FB found 1 display(s) [ 0.359153] Console: switching to colour frame buffer device 82x26 [ 0.364157] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 656x416 [ 0.371337] bcm2835-rng 20104000.rng: hwrng registered [ 0.373627] vc-mem: phys_addr:0x00000000 mem_base=0x1fa00000 mem_size:0x20000000(512 MiB) [ 0.378328] vc-sm: Videocore shared memory driver [ 0.380912] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000 [ 0.405183] brd: module loaded [ 0.420498] loop: module loaded [ 0.423208] Loading iSCSI transport class v2.0-870. [ 0.426200] usbcore: registered new interface driver smsc95xx [ 0.428030] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) [ 0.429926] dwc_otg: FIQ enabled [ 0.429936] dwc_otg: NAK holdoff enabled [ 0.429943] dwc_otg: FIQ split-transaction FSM enabled [ 0.429962] Module dwc_common_port init [ 0.430437] usbcore: registered new interface driver usb-storage [ 0.432666] mousedev: PS/2 mouse device common for all mice [ 0.436051] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer [ 0.438356] bcm2835-cpufreq: min=700000 max=1000000 [ 0.441436] sdhci: Secure Digital Host Controller Interface driver [ 0.443331] sdhci: Copyright(c) Pierre Ossman [ 0.445877] mmc-bcm2835 20300000.mmcnr: could not get clk, deferring probe [ 0.448538] sdhost-bcm2835 20202000.mmc: could not get clk, deferring probe [ 0.450713] sdhci-pltfm: SDHCI platform and OF driver helper [ 0.453238] ledtrig-cpu: registered to indicate activity on CPUs [ 0.455587] hidraw: raw HID events driver (C) Jiri Kosina [ 0.457299] usbcore: registered new interface driver usbhid [ 0.458571] usbhid: USB HID core driver [ 0.460676] vchiq: vchiq_init_state: slot_zero = (ptrval), is_master = 0
[ 0.467058] vc_vchi_sm_init: failed to open VCHI service (-1) [ 0.467070] [vc_sm_connected_init]: failed to initialize shared memory service [ 0.469675] [vc_sm_connected_init]: end - returning -1 [ 0.472363] Initializing XFRM netlink socket [ 0.473904] NET: Registered protocol family 17 [ 0.475290] Key type dns_resolver registered [ 0.477922] registered taskstats version 1 [ 0.479206] Loading compiled-in X.509 certificates [ 0.481728] Key type encrypted registered [ 0.489920] uart-pl011 20201000.serial: cts_event_workaround enabled [ 0.491346] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2 [ 0.496179] mmc-bcm2835 20300000.mmcnr: mmc_debug:0 mmc_debug2:0 [ 0.497524] mmc-bcm2835 20300000.mmcnr: DMA channel allocated [ 0.527825] sdhost: log_buf @ (ptrval) (5e510000) [ 0.564536] mmc1: queuing unknown CIS tuple 0x80 (2 bytes) [ 0.568049] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 0.571428] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 0.576197] mmc1: queuing unknown CIS tuple 0x80 (7 bytes) [ 0.577854] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1) [ 0.581002] of_cfs_init [ 0.582668] of_cfs_init: OK [ 0.605978] Waiting for root device /dev/mmcblk0p2... [ 0.615414] random: fast init done [ 0.645937] mmc0: host does not support reading read-only switch, assuming write-enable [ 0.651680] mmc0: new high speed SDHC card at address 1234 [ 0.655862] mmcblk0: mmc0:1234 SA08G 7.21 GiB [ 0.659789] mmcblk0: p1 p2 [ 0.680476] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 0.682780] VFS: Mounted root (ext4 filesystem) readonly on device 179:2. [ 0.696001] devtmpfs: mounted [ 0.701714] Freeing unused kernel memory: 460K [ 0.702904] This architecture does not have kernel memory protection. [ 0.704110] Run /sbin/init as init process [ 0.725875] mmc1: new high speed SDIO card at address 0001 [ 1.544149] systemd[1]: System time before build time, advancing clock. [ 1.711865] NET: Registered protocol family 10 [ 1.714885] Segment Routing with IPv6 [ 1.773965] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid) [ 1.780965] systemd[1]: Detected architecture arm. [ 1.808230] systemd[1]: Set hostname to.
[ 3.474163] random: systemd: uninitialized urandom read (16 bytes read)
[ 3.617856] systemd[1]: Configuration file /etc/systemd/system/pwngrid-peer.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.
[ 3.625728] systemd[1]: Configuration file /etc/systemd/system/pwnagotchi.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.
[ 3.687587] systemd[1]: Configuration file /etc/systemd/system/bettercap.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.
[ 3.738600] random: systemd: uninitialized urandom read (16 bytes read)
[ 3.741283] systemd[1]: Listening on udev Control Socket.
[ 3.746148] random: systemd: uninitialized urandom read (16 bytes read)
[ 3.748266] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 3.753806] systemd[1]: Reached target Remote File Systems.
[ 3.758456] systemd[1]: Listening on udev Kernel Socket.
[ 4.321282] dwc2 20980000.usb: 20980000.usb supply vusb_d not found, using dummy regulator
[ 4.323640] dwc2 20980000.usb: Linked as a consumer to regulator.0
[ 4.332222] dwc2 20980000.usb: 20980000.usb supply vusb_a not found, using dummy regulator
[ 4.563877] dwc2 20980000.usb: dwc2_check_params: Invalid parameter lpm=1
[ 4.563890] dwc2 20980000.usb: dwc2_check_params: Invalid parameter lpm_clock_gating=1
[ 4.563898] dwc2 20980000.usb: dwc2_check_params: Invalid parameter besl=1
[ 4.563906] dwc2 20980000.usb: dwc2_check_params: Invalid parameter hird_threshold_en=1
[ 4.563955] dwc2 20980000.usb: EPs: 8, dedicated fifos, 4080 entries in SPRAM
[ 4.565011] dwc2 20980000.usb: DWC OTG Controller
[ 4.565061] dwc2 20980000.usb: new USB bus registered, assigned bus number 1
[ 4.565120] dwc2 20980000.usb: irq 33, io mem 0x20980000
[ 4.565458] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[ 4.565470] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 4.565478] usb usb1: Product: DWC OTG Controller
[ 4.565485] usb usb1: Manufacturer: Linux 4.19.93-Re4son+ dwc2_hsotg
[ 4.565492] usb usb1: SerialNumber: 20980000.usb
[ 4.566352] hub 1-0:1.0: USB hub found
[ 4.566427] hub 1-0:1.0: 1 port detected
[ 4.740888] using random self ethernet address
[ 4.742393] using random host ethernet address
[ 4.748031] usb0: HOST MAC 4a:4e:f7:33:02:af
[ 4.762955] usb0: MAC c6:39:ec:26:ed:81
[ 4.773854] using random self ethernet address
[ 4.775120] using random host ethernet address
[ 4.776290] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
[ 4.777445] g_ether gadget: g_ether ready
[ 4.778532] dwc2 20980000.usb: bound driver g_ether
[ 4.825291] i2c /dev entries driver
[ 5.051454] dwc2 20980000.usb: new device is high-speed
[ 5.094084] dwc2 20980000.usb: new address 8
[ 5.110327] g_ether gadget: high-speed config #1: CDC Ethernet (ECM)
[ 6.253295] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 6.747219] systemd-journald[91]: Received request to flush runtime journal from PID 1
[ 10.599519] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[ 10.611805] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[ 10.612032] vc_sm_cma_vchi_init: failed to open VCHI service (-1) [ 10.612041] [vc_sm_connected_init]: failed to initialize shared memory service [ 10.627580] media: Linux media interface: v0.10 [ 10.864788] videodev: Linux video capture interface: v2.00 [ 10.944631] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned. [ 10.969385] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned. [ 10.987501] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned. [ 11.104186] bcm2835_mmal_vchiq: Failed to open VCHI service connection (status=-1) [ 11.110408] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned. [ 11.151544] bcm2835_mmal_vchiq: Failed to open VCHI service connection (status=-1) [ 11.297436] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned. [ 11.424711] bcm2835_audio soc:audio: card created with 8 channels [ 11.936642] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 12.102276] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 12.417531] brcmfmac: F1 signature read @0x18000000=0x1541a9a6 [ 12.428537] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1 [ 12.428859] usbcore: registered new interface driver brcmfmac [ 12.798168] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1 [ 12.798314] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available [ 12.799203] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Aug 7 2017 00:46:29 version 7.45.41.46 (r666254 CY) FWID 01-f8a78378 [ 17.294486] random: crng init done [ 17.294504] random: 7 urandom warning(s) missed due to ratelimiting [ 17.549652] uart-pl011 20201000.serial: no DMA platform data [ 19.517766] fuse init (API version 7.27) [ 19.903172] brcmfmac: brcmf_vif_add_validate: Attempt to add a MONITOR interface... [ 19.903201] brcmfmac: brcmf_mon_add_vif: brcmf_mon_add_vif called [ 19.903208] brcmfmac: brcmf_mon_add_vif: Adding vif "mon0" [ 19.931297] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS [ 22.572727] Bluetooth: Core ver 2.22 [ 22.572918] NET: Registered protocol family 31 [ 22.572928] Bluetooth: HCI device and connection manager initialized [ 22.583809] Bluetooth: HCI socket layer initialized [ 22.583836] Bluetooth: L2CAP socket layer initialized [ 22.583902] Bluetooth: SCO socket layer initialized [ 23.436988] Bluetooth: HCI UART driver ver 2.3 [ 23.437119] Bluetooth: HCI UART protocol H4 registered [ 23.437530] Bluetooth: HCI UART protocol Three-wire (H5) registered [ 23.439468] Bluetooth: HCI UART protocol Broadcom registered [ 25.039257] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 25.039272] Bluetooth: BNEP filters: protocol multicast [ 25.039297] Bluetooth: BNEP socket layer initialized
Nothing in logs: tail -f /var/log/pwnagotchi.log [2020-08-18 13:06:53,706] [INFO] [update] plugin loaded. [2020-08-18 13:06:53,704] [INFO] grid plugin loaded. [2020-08-18 13:06:53,708] [INFO] [led] plugin loaded for /sys/class/leds/led0/brightness [2020-08-18 13:06:53,727] [INFO] Session-stats plugin loaded. [2020-08-18 13:06:54,025] [WARNING] ui.fps is 0, the display will only update for major changes [2020-08-18 13:06:54,027] [INFO] initializing waveshare v2 display [2020-08-18 13:07:07,060] [INFO] pwnagotchi@26fa66c1431585d908fc74b992813253439e1d93445372ba63c5884fe598990f (v1.5.3) [2020-08-18 13:07:07,075] [INFO] entering manual mode ... [2020-08-18 13:07:07,764] [INFO] web ui available at http://0.0.0.0:8080/ [2020-08-18 13:07:07,869] [INFO] the last session lasted 9731 hours, 44 minutes, 22 seconds (0 completed epochs, trained for 0), average reward:0.0 (min:1000 max:-1000)