pwnagotchi
pwnagotchi copied to clipboard
[BUG] bt-tether not connecting to an Android phone
Hello, thanks for an amazing project. I have been trying to set up bt-tethering option since yesterday. I have installed latest release and read on on the latest changes regarding bt-tether. For this I have used new config.yml that has been recently updated. My config.yml about bt-tether looks like this:
bt-tether:
enabled: true # if you want to use this, set ui.display.video.address to 0.0.0.0
devices:
android-phone:
enabled: true
search_order: 1 # search for this first
mac: 'EC:D0:XX:XX:XX:XX' # mac of your bluetooth device
ip: '192.168.44.44' # ip from which your pwnagotchi should be reachable
netmask: 24
interval: 1 # check every minute for device
scantime: 10 # search for 10 seconds
max_tries: 10 # after 10 tries of "not found"; don't try anymore
share_internet: false
priority: 1 # low routing priority; ios (prio: 999) would win here
ios-phone:
enabled: false
search_order: 2 # search for this second
mac: ~ # mac of your bluetooth device
ip: '172.20.10.6' # ip from which your pwnagotchi should be reachable
netmask: 24
interval: 5 # check every 5 minutes for device
scantime: 20
max_tries: 0 # infinity
share_internet: false
priority: 999 # routing priority
I also replaced bt-tether.py with this updated one https://github.com/evilsocket/pwnagotchi/blob/master/pwnagotchi/plugins/default/bt-tether.py.
I have paired the phone and rpi0w manually using bluetoothctl, it said that the pairing was successful but it immediately disconnected shortly after. I also have bluetooth-tethering set on my phone to ON. Same situation with an iphone as well.
What have I missed, is there anything else I can try ?
Please run pwnagotchi --debug
and post the logs :)
Same issue here, running Android 9 (moto 7g). The phone does pair without issues but the phone does not recognize the pwnagotchi as a networked device. Can send debug when I get access.
EDIT: My guess is that it misses some extra commands:
Create a PAN connection with: sudo pand -c –role PANU –persist 30.
Add the following line to /etc/network/interfaces: iface bnep0 inet dhcp
Your Pi should now be tethered! Add the pand line to /etc/rc.local to have it automatically begin on startup. The persist option means it will try to reconnect every 30 seconds if the signal is lost.
Source: http://edwardsh.in/pihud/2013/01/25/tethering-the-raspberry-pi-with-an-android-phone-over-bluetooth
@dadav
Here are the logs from pwnagotchi --debug.
Since I have noticed the development regarding bt-tether i replaced:
root@pcap-shrimp:/# find / -name "bt-tether.py"
find: ‘/proc/3130’: No such file or directory
/usr/local/lib/python3.7/dist-packages/pwnagotchi/plugins/default/bt-tether.py
/usr/local/src/pwnagotchi/build/lib/pwnagotchi/plugins/default/bt-tether.py
/usr/local/src/pwnagotchi/pwnagotchi/plugins/default/bt-tether.py
with https://raw.githubusercontent.com/evilsocket/pwnagotchi/master/pwnagotchi/plugins/default/bt-tether.py.
root@pcap-shrimp:/usr/local/bin# pwnagotchi --debug
[2019-11-05 12:10:22,537] [DEBUG] loading plugins from /usr/local/lib/python3.7/dist-packages/pwnagotchi/plugins/default - enabled: ['grid', 'auto-update', 'bt-tether']
[2019-11-05 12:10:22,554] [DEBUG] loading /usr/local/lib/python3.7/dist-packages/pwnagotchi/plugins/default/grid.py
[2019-11-05 12:10:22,566] [DEBUG] loading /usr/local/lib/python3.7/dist-packages/pwnagotchi/plugins/default/bt-tether.py
[2019-11-05 12:10:22,682] [DEBUG] loaded plugin bt-tether as <bt-tether.BTTether object at 0xb5595070>
[2019-11-05 12:10:22,686] [DEBUG] loading /usr/local/lib/python3.7/dist-packages/pwnagotchi/plugins/default/auto-update.py
[2019-11-05 12:10:25,809] [ERROR] BT-TETHER: Please specify the mac in your config.yml.
[2019-11-05 12:10:25,827] [WARNING] ui.fps is 0, the display will only update for major changes
[2019-11-05 12:10:25,831] [INFO] initializing waveshare v2 display
[2019-11-05 12:10:25,846] [INFO] web ui available at http://0.0.0.0:8080/
[2019-11-05 12:10:28,000] [INFO] pcap-shrimp@473d4f4d450a8ce75d87fe31a7768d1f6f114300f70ec93617ef9df2756da3cf (v1.1.1)
[2019-11-05 12:10:28,515] [DEBUG] effective configuration:
ai:
enabled: true
epochs_per_episode: 50
laziness: 0.1
params:
alpha: 0.99
ent_coef: 0.01
epsilon: 1.0e-05
gamma: 0.99
learning_rate: 0.001
lr_schedule: constant
max_grad_norm: 0.5
n_steps: 1
tensorboard_log: null
verbose: 1
vf_coef: 0.25
path: /root/brain.nn
bettercap:
handshakes: /root/handshakes
hostname: localhost
password: pwnagotchi
port: 8081
scheme: http
silence:
- ble.device.new
- ble.device.lost
- ble.device.disconnected
- ble.device.connected
- ble.device.service.discovered
- ble.device.characteristic.discovered
- wifi.client.new
- wifi.client.lost
- wifi.client.probe
- wifi.ap.new
- wifi.ap.lost
- mod.started
username: pwnagotchi
main:
custom_plugins: null
filter: null
iface: mon0
lang: en
log: /var/log/pwnagotchi.log
mon_max_blind_epochs: 50
mon_start_cmd: /usr/bin/monstart
mon_stop_cmd: /usr/bin/monstop
name: ''
no_restart: false
plugins:
AircrackOnly:
enabled: false
auto-backup:
commands:
- tar czf /root/pwnagotchi-backup.tar.gz {files}
enabled: false
files:
- /root/brain.nn
- /root/brain.json
- /root/.api-report.json
- /root/handshakes/
- /root/peers/
- /etc/pwnagotchi/
- /var/log/pwnagotchi.log
interval: 1
auto-update:
enabled: true
install: true
interval: 1
bt-tether:
devices:
android-phone:
enabled: true
interval: 1
ip: 192.168.44.44
mac: EC:D0:9F:xx:xx:xx
max_tries: 10
netmask: 24
priority: 1
scantime: 10
search_order: 1
share_internet: false
ios-phone:
enabled: false
interval: 5
ip: 172.20.10.6
mac: null
max_tries: 0
netmask: 24
priority: 999
scantime: 20
search_order: 2
share_internet: false
enabled: true
interval: 1
ip: 192.168.44.44
mac: null
netmask: 24
share_internet: false
gpio_buttons:
enabled: false
gpios:
- 20: sudo touch /root/.pwnagotchi-auto && sudo systemctl restart pwnagotchi
- 21: shutdown -h now
gps:
device: /dev/ttyUSB0
enabled: false
speed: 19200
grid:
enabled: true
exclude:
- YourHomeNetworkHere
report: false
memtemp:
enabled: false
orientation: horizontal
net-pos:
api_key: test
enabled: false
onlinehashcrack:
email: null
enabled: false
pawgps:
enabled: false
ip: ''
quickdic:
enabled: false
wordlist_folder: /opt/wordlists/
screen_refresh:
enabled: false
refresh_interval: 50
twitter:
access_token_key: aaa
access_token_secret: aaa
consumer_key: aaa
consumer_secret: aaa
enabled: false
wigle:
api_key: null
enabled: false
wpa-sec:
api_key: null
api_url: https://wpa-sec.stanev.org
enabled: false
whitelist:
- EXAMPLE_NETWORK
- ANOTHER_EXAMPLE_NETWORK
personality:
advertise: true
ap_ttl: 120
associate: true
bond_encounters_factor: 20000
bored_num_epochs: 15
channels: []
deauth: true
excited_num_epochs: 10
hop_recon_time: 10
max_inactive_scale: 2
max_interactions: 3
max_misses_for_recon: 5
min_recon_time: 5
min_rssi: -200
recon_inactive_multiplier: 2
recon_time: 30
sad_num_epochs: 25
sta_ttl: 300
ui:
display:
color: black
enabled: true
rotation: 180
type: waveshare_2
video:
address: 0.0.0.0
enabled: true
on_frame: ''
origin: null
port: 8080
faces:
angry: (-_-')
awake: "(\u25D5\u203F\u203F\u25D5)"
bored: (-__-)
broken: "(\u2613\u203F\u203F\u2613)"
cool: "(\u2310\u25A0_\u25A0)"
debug: (#__#)
demotivated: "(\u2256__\u2256)"
excited: "(\u1D54\u25E1\u25E1\u1D54)"
friend: "(\u2665\u203F\u203F\u2665)"
grateful: "(^\u203F\u203F^)"
happy: "(\u2022\u203F\u203F\u2022)"
intense: "(\xB0\u2583\u2583\xB0)"
lonely: "(\u0628__\u0628)"
look_l: "(\u2609_\u2609 )"
look_l_happy: "(\u25D5\u203F\u25D5 )"
look_r: "( \u2686_\u2686)"
look_r_happy: "( \u25D5\u203F\u25D5)"
motivated: "(\u263C\u203F\u203F\u263C)"
sad: "(\u2565\u2601\u2565 )"
sleep: "(\u21C0\u203F\u203F\u21BC)"
sleep2: "(\u2256\u203F\u203F\u2256)"
smart: "(\u271C\u203F\u203F\u271C)"
fps: 0.0
[2019-11-05 12:10:28,536] [DEBUG] plugin 'BTTether' v1.0.0
[2019-11-05 12:10:28,537] [INFO] entering auto mode ...
[2019-11-05 12:10:28,556] [INFO] [ai] bootstrapping dependencies ...
[2019-11-05 12:10:29,507] [INFO] connecting to http://localhost:8081/api ...
[2019-11-05 12:10:31,804] [INFO] found monitor interface: mon0
[2019-11-05 12:10:31,819] [INFO] supported channels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
[2019-11-05 12:10:31,822] [INFO] handshakes will be collected inside /root/handshakes
[2019-11-05 12:10:33,446] [DEBUG] restarting wifi module ...
[2019-11-05 12:10:37,209] [DEBUG] agent.next_epoch()
[2019-11-05 12:10:37,250] [INFO] [epoch 0] duration=00:00:09 slept_for=00:00:00 blind=0 inactive=1 active=0 peers=0 tot_bond=0.00 avg_bond=0.00 hops=0 missed=0 deauths=0 assocs=0 handshakes=0 cpu=33% mem=30% temperature=43C reward=-0.2
[2019-11-05 12:10:37,269] [DEBUG] RECON 30s
[2019-11-05 12:10:38,393] [DEBUG] polling events ...
[2019-11-05 12:10:40,962] [DEBUG] polling events ...
[2019-11-05 12:10:43,926] [DEBUG] polling events ...
[2019-11-05 12:10:46,776] [DEBUG] polling events ...
[2019-11-05 12:10:49,734] [DEBUG] polling events ...
[2019-11-05 12:10:52,416] [DEBUG] polling events ...
[2019-11-05 12:10:54,938] [DEBUG] polling events ...
[2019-11-05 12:10:57,057] [DEBUG] polling pwngrid-peer for peers ...
[2019-11-05 12:10:57,626] [DEBUG] polling events ...
[2019-11-05 12:11:00,108] [DEBUG] polling events ...
[2019-11-05 12:11:00,343] [DEBUG] polling pwngrid-peer for peers ...
[2019-11-05 12:11:02,517] [DEBUG] polling events ...
[2019-11-05 12:11:03,594] [DEBUG] polling pwngrid-peer for peers ...
[2019-11-05 12:11:04,858] [DEBUG] polling events ...
[2019-11-05 12:11:06,892] [DEBUG] polling pwngrid-peer for peers ...
[2019-11-05 12:11:07,698] [DEBUG] polling events ...
[2019-11-05 12:11:10,107] [DEBUG] polling pwngrid-peer for peers ...
root@pcap-shrimp:/etc/pwnagotchi# systemctl status pwnagotchi
● pwnagotchi.service - pwnagotchi Deep Reinforcement Learning instrumenting bettercap for WiFI pwning.
Loaded: loaded (/etc/systemd/system/pwnagotchi.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2019-11-05 12:17:51 GMT; 11s ago
Docs: https://pwnagotchi.ai
Main PID: 6478 (bash)
CGroup: /system.slice/pwnagotchi.service
├─6478 bash /usr/bin/pwnagotchi-launcher
└─6483 /usr/bin/python3 /usr/local/bin/pwnagotchi --manual
Nov 05 12:17:51 pcap-shrimp systemd[1]: Started pwnagotchi Deep Reinforcement Learning instrumenting bettercap for WiFI pwning..
Nov 05 12:18:02 pcap-shrimp pwnagotchi-launcher[6478]: [2019-11-05 12:18:01,997] [ERROR] BT-TETHER: Please specify the mac in your config.yml.
Nov 05 12:18:02 pcap-shrimp pwnagotchi-launcher[6478]: [2019-11-05 12:18:02,020] [WARNING] ui.fps is 0, the display will only update for major changes
Nov 05 12:18:02 pcap-shrimp pwnagotchi-launcher[6478]: [2019-11-05 12:18:02,024] [INFO] initializing waveshare v2 display
Nov 05 12:18:02 pcap-shrimp pwnagotchi-launcher[6478]: [2019-11-05 12:18:02,037] [INFO] web ui available at http://0.0.0.0:8080/
Bluetooth logs:
root@pcap-shrimp:/etc/pwnagotchi# sudo cat /var/log/syslog | grep -i bluetooth
Jul 10 01:21:56 pwnagotchi systemd[1]: Starting Configure Bluetooth Modems connected by UART...
Jul 10 01:22:02 pwnagotchi kernel: [ 52.160119] Bluetooth: Core ver 2.22
Jul 10 01:22:02 pwnagotchi kernel: [ 52.160306] Bluetooth: HCI device and connection manager initialized
Jul 10 01:22:02 pwnagotchi kernel: [ 52.160330] Bluetooth: HCI socket layer initialized
Jul 10 01:22:02 pwnagotchi kernel: [ 52.160344] Bluetooth: L2CAP socket layer initialized
Jul 10 01:22:02 pwnagotchi kernel: [ 52.160391] Bluetooth: SCO socket layer initialized
Jul 10 01:22:03 pwnagotchi kernel: [ 52.779464] Bluetooth: HCI UART driver ver 2.3
Jul 10 01:22:03 pwnagotchi kernel: [ 52.779484] Bluetooth: HCI UART protocol H4 registered
Jul 10 01:22:03 pwnagotchi kernel: [ 52.779720] Bluetooth: HCI UART protocol Three-wire (H5) registered
Jul 10 01:22:03 pwnagotchi kernel: [ 52.780099] Bluetooth: HCI UART protocol Broadcom registered
Jul 10 01:22:03 pwnagotchi systemd[1]: Started Configure Bluetooth Modems connected by UART.
Jul 10 01:22:04 pwnagotchi systemd[1]: Starting Bluetooth service...
Jul 10 01:22:04 pwnagotchi systemd[1]: Reached target Bluetooth.
Jul 10 01:22:07 pwnagotchi bluetoothd[461]: Bluetooth daemon 5.50
Jul 10 01:22:08 pwnagotchi systemd[1]: Started Bluetooth service.
Jul 10 01:22:08 pwnagotchi systemd[1]: Started Raspberry Pi bluetooth helper.
Jul 10 01:22:08 pwnagotchi bluetoothd[461]: Starting SDP server
Jul 10 01:22:08 pwnagotchi bluetoothd[461]: Excluding (cli) sap
Jul 10 01:22:09 pwnagotchi kernel: [ 58.336816] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Jul 10 01:22:09 pwnagotchi kernel: [ 58.336833] Bluetooth: BNEP filters: protocol multicast
Jul 10 01:22:09 pwnagotchi kernel: [ 58.336861] Bluetooth: BNEP socket layer initialized
Jul 10 01:22:09 pwnagotchi bluetoothd[461]: Bluetooth management interface 1.14 initialized
Jul 10 01:22:09 pwnagotchi dbus-daemon[377]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.4' (uid=0 pid=461 comm="/usr/lib/bluetooth/bluetoothd --noplugin=sap ")
Jul 10 01:22:09 pwnagotchi bluetoothd[461]: Failed to set privacy: Rejected (0x0b)
Jul 10 01:22:44 pwnagotchi bluetoothd[461]: Terminating
Jul 10 01:22:44 pwnagotchi systemd[1]: Stopping Bluetooth service...
Jul 10 01:22:44 pwnagotchi bluetoothd[461]: Stopping SDP server
Jul 10 01:22:44 pwnagotchi bluetoothd[461]: Exit
Jul 10 01:22:44 pwnagotchi systemd[1]: Stopping Configure Bluetooth Modems connected by UART...
Jul 10 01:23:09 pcap-shrimp systemd[1]: Starting Configure Bluetooth Modems connected by UART...
Jul 10 01:23:15 pcap-shrimp kernel: [ 29.757638] Bluetooth: Core ver 2.22
Jul 10 01:23:15 pcap-shrimp kernel: [ 29.757835] Bluetooth: HCI device and connection manager initialized
Jul 10 01:23:15 pcap-shrimp kernel: [ 29.757859] Bluetooth: HCI socket layer initialized
Jul 10 01:23:15 pcap-shrimp kernel: [ 29.757874] Bluetooth: L2CAP socket layer initialized
Jul 10 01:23:15 pcap-shrimp kernel: [ 29.757928] Bluetooth: SCO socket layer initialized
Jul 10 01:23:15 pcap-shrimp kernel: [ 29.805307] Bluetooth: HCI UART driver ver 2.3
Jul 10 01:23:15 pcap-shrimp kernel: [ 29.805327] Bluetooth: HCI UART protocol H4 registered
Jul 10 01:23:15 pcap-shrimp kernel: [ 29.821080] Bluetooth: HCI UART protocol Three-wire (H5) registered
Jul 10 01:23:15 pcap-shrimp kernel: [ 29.825110] Bluetooth: HCI UART protocol Broadcom registered
Jul 10 01:23:18 pcap-shrimp systemd[1]: Started Configure Bluetooth Modems connected by UART.
Jul 10 01:23:18 pcap-shrimp systemd[1]: Starting Bluetooth service...
Jul 10 01:23:18 pcap-shrimp systemd[1]: Reached target Bluetooth.
Jul 10 01:23:19 pcap-shrimp bluetoothd[508]: Bluetooth daemon 5.50
Jul 10 01:23:19 pcap-shrimp bluetoothd[508]: Starting SDP server
Jul 10 01:23:19 pcap-shrimp bluetoothd[508]: Excluding (cli) sap
Jul 10 01:23:19 pcap-shrimp kernel: [ 34.087406] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Jul 10 01:23:19 pcap-shrimp kernel: [ 34.087422] Bluetooth: BNEP filters: protocol multicast
Jul 10 01:23:19 pcap-shrimp kernel: [ 34.087451] Bluetooth: BNEP socket layer initialized
Jul 10 01:23:19 pcap-shrimp bluetoothd[508]: Bluetooth management interface 1.14 initialized
Jul 10 01:23:19 pcap-shrimp dbus-daemon[354]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.4' (uid=0 pid=508 comm="/usr/lib/bluetooth/bluetoothd --noplugin=sap ")
Jul 10 01:23:19 pcap-shrimp systemd[1]: Started Bluetooth service.
Problem I have noticed is that rpi has troubles connecting to the device (Android) when bluetooth-thethering is on. I have tried on two seperate Android phones and the situation was the same.
@hackabean have you tried putting your bluetooth mac address between quotes? Pwnagotchi complains that the mac address could not be resolved. ([ERROR] BT-TETHER: Please specify the mac in your config.yml)
mac: 'EC:D0:9F:xx:xx:xx'
@mrseeker Yup it is in single quotes. I am looking into my problem right now and it seems like my device is not creating bt-pan network adapter when I switch bluetooth-tethering ON in the settings, did you manage to get it working ?
Hi All! Looks like the recent changes about "refactoring the plugins to use classes" are only exists in master but not in ver 1.1.1. So you have a "module 'pwnagotchi.plugins' has no attribute 'Plugin'" error with the new version of bt-tether plugin. Also, wiki has been already updated to use the new version of bt-there configuration, thats where "ERROR] BT-TETHER: Please specify the mac in your config" came from..
On Tue, Nov 5, 2019, 18:06 hackabean [email protected] wrote:
@mrseeker https://github.com/mrseeker Yup it is in single quotes. I am looking into my problem right now and it seems like my device is not creating bt-pan network adapter when I switch bluetooth-tethering on in the settings, did you managed to get it working ?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/evilsocket/pwnagotchi/issues/508?email_source=notifications&email_token=ANT4HS6MXHZWXIEROVB4VS3QSGDYXA5CNFSM4JILP44KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDDEBGI#issuecomment-549863577, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANT4HS2W6U4PLJUE6GRKTWTQSGDYXANCNFSM4JILP44A .
@yecukeng it seems you are right, the defaults.yml shows the old config...
https://github.com/evilsocket/pwnagotchi/blob/v1.1.1/pwnagotchi/defaults.yml
So, we have following situation here:
- If you put the latest version of bt-tether.py plugin wihich uses new config on version 1.1.1 of pwnagotchi, you will get a "[WARNING] error while loading /usr/local/lib/python3.7/dist-packages/pwnagotchi/plugins/default/bt-tether.py: module 'pwnagotchi.plugins' has no attribute 'Plugin'" because this version of plugin is incompatible with pwnagotchi version 1.1.1
- If you will follow these instructions https://pwnagotchi.ai/configuration/#bluetooth you will get an "[ERROR] BT-TETHER: Please specify the mac in your config.yml" because bt-tether plugin version that ships with version 1.1.1 is'nt compatible with new style config. As for now the solution would be either to use the old config style ( https://github.com/evilsocket/pwnagotchi/blob/v1.1.1/pwnagotchi/defaults.yml) or try to manually update pwnagotchi from master. Hope this will be fixed soon...
вт, 5 нояб. 2019 г. в 19:07, Julius ter Pelkwijk [email protected]:
@yecukeng https://github.com/yecukeng it seems you are right, the defaults.yml shows the old config...
https://github.com/evilsocket/pwnagotchi/blob/v1.1.1/pwnagotchi/defaults.yml
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/evilsocket/pwnagotchi/issues/508?email_source=notifications&email_token=ANT4HS3STZQGCYJTQXGYZDLQSGK3NA5CNFSM4JILP44KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDDHFEI#issuecomment-549876369, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANT4HS7PIL2FQ3STTEEN75LQSGK3NANCNFSM4JILP44A .
I found my solution!
Just a quick post to anyone facing similar problem in the future. In order to receive bt-tether connection make sure you power your pwnagotchi from the power micro usb slot and not the data one on the rpi0w!! Once you pair a device wait up to 5 minutes to get the connection back.
@yecukeng: you can upgrade to 1.2.1 which was released yesterday ;)
@deveth0 yep, i can confirm it working with new style config on version 1.2.1
On my 3rd attemp, the connection was initialized fine by the plugin. Before the 3rd attemp, i made sure, to restart my android phone, activated tethering and removed the pwnagotchi before starting bluetooth. Updating to the new version went flawless and the last message on my phones screen was, the neural network is ready. But then i maybe got a little out of range? About 5-8meters away, saw the bt connection drop and immediatelly checked dmesg by the usb connection.
[ 1012.259480] ------------[ cut here ]------------
[ 1012.259528] WARNING: CPU: 0 PID: 1535 at /opt/kernel-builder_repos/Re4son/re4son-raspberrypi-linux/all/fs/sysfs/group.c:255 sysfs_remove_group+0x98/0xa4
[ 1012.259535] sysfs group 'byte_queue_limits' not found for kobject 'tx-0'
[ 1012.259539] Modules linked in: bnep hci_uart btbcm serdev bluetooth ecdh_generic fuse spidev brcmfmac brcmutil cfg80211 rfkill snd_bcm2835(C) snd_pcm raspberrypi_hwmon hwmon snd_timer snd i2c_bcm2835 spi_bcm2835aux bcm2835_codec(C) bcm2835_v4l2(C) v4l2_mem2mem spi_bcm2835 bcm2835_mmal_vchiq(C) v4l2_common videobuf2_vmalloc videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videobuf2_common videodev media vc_sm_cma(C) uio_pdrv_genirq fixed uio i2c_dev usb_f_ecm g_ether usb_f_rndis u_ether libcomposite dwc2 udc_core ip_tables x_tables ipv6
[ 1012.259705] CPU: 0 PID: 1535 Comm: kbnepd bnep0 Tainted: G C 4.19.66-Re4son+ #1
[ 1012.259710] Hardware name: BCM2835
[ 1012.259745] [<c0017e44>] (unwind_backtrace) from [<c0014d84>] (show_stack+0x20/0x24)
[ 1012.259767] [<c0014d84>] (show_stack) from [<c06f3278>] (dump_stack+0x20/0x28)
[ 1012.259792] [<c06f3278>] (dump_stack) from [<c0024624>] (__warn+0xf0/0x118)
[ 1012.259807] [<c0024624>] (__warn) from [<c002469c>] (warn_slowpath_fmt+0x50/0x70)
[ 1012.259825] [<c002469c>] (warn_slowpath_fmt) from [<c021f370>] (sysfs_remove_group+0x98/0xa4)
[ 1012.259844] [<c021f370>] (sysfs_remove_group) from [<c0613460>] (netdev_queue_update_kobjects+0xc0/0x178)
[ 1012.259952] [<c0613460>] (netdev_queue_update_kobjects) from [<c0613578>] (netdev_unregister_kobject+0x60/0x80)
[ 1012.259977] [<c0613578>] (netdev_unregister_kobject) from [<c05eb0f4>] (rollback_registered_many+0x1ec/0x508)
[ 1012.259995] [<c05eb0f4>] (rollback_registered_many) from [<c05eb4ac>] (unregister_netdevice_queue+0x9c/0x130)
[ 1012.260010] [<c05eb4ac>] (unregister_netdevice_queue) from [<c05eb568>] (unregister_netdev+0x28/0x30)
[ 1012.260048] [<c05eb568>] (unregister_netdev) from [<bf5fb958>] (bnep_session+0x4d4/0x888 [bnep])
[ 1012.260100] [<bf5fb958>] (bnep_session [bnep]) from [<c00432c0>] (kthread+0x120/0x160)
[ 1012.260116] [<c00432c0>] (kthread) from [<c00090ac>] (ret_from_fork+0x14/0x28)
[ 1012.260123] Exception stack(0xdd8fdfb0 to 0xdd8fdff8)
[ 1012.260132] dfa0: 00000000 00000000 00000000 00000000
[ 1012.260143] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1012.260152] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 1012.260159] ---[ end trace 21919dd0870a28c0 ]---
[ 1012.260265] ------------[ cut here ]------------
[ 1012.260292] WARNING: CPU: 0 PID: 1535 at /opt/kernel-builder_repos/Re4son/re4son-raspberrypi-linux/all/fs/sysfs/group.c:255 sysfs_remove_group+0x98/0xa4
[ 1012.260298] sysfs group 'power' not found for kobject 'bnep0'
[ 1012.260302] Modules linked in: bnep hci_uart btbcm serdev bluetooth ecdh_generic fuse spidev brcmfmac brcmutil cfg80211 rfkill snd_bcm2835(C) snd_pcm raspberrypi_hwmon hwmon snd_timer snd i2c_bcm2835 spi_bcm2835aux bcm2835_codec(C) bcm2835_v4l2(C) v4l2_mem2mem spi_bcm2835 bcm2835_mmal_vchiq(C) v4l2_common videobuf2_vmalloc videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videobuf2_common videodev media vc_sm_cma(C) uio_pdrv_genirq fixed uio i2c_dev usb_f_ecm g_ether usb_f_rndis u_ether libcomposite dwc2 udc_core ip_tables x_tables ipv6
[ 1012.260457] CPU: 0 PID: 1535 Comm: kbnepd bnep0 Tainted: G WC 4.19.66-Re4son+ #1
[ 1012.260462] Hardware name: BCM2835
[ 1012.260486] [<c0017e44>] (unwind_backtrace) from [<c0014d84>] (show_stack+0x20/0x24)
[ 1012.260506] [<c0014d84>] (show_stack) from [<c06f3278>] (dump_stack+0x20/0x28)
[ 1012.260529] [<c06f3278>] (dump_stack) from [<c0024624>] (__warn+0xf0/0x118)
[ 1012.260545] [<c0024624>] (__warn) from [<c002469c>] (warn_slowpath_fmt+0x50/0x70)
[ 1012.260561] [<c002469c>] (warn_slowpath_fmt) from [<c021f370>] (sysfs_remove_group+0x98/0xa4)
[ 1012.260588] [<c021f370>] (sysfs_remove_group) from [<c04a1474>] (dpm_sysfs_remove+0x58/0x60)
[ 1012.260607] [<c04a1474>] (dpm_sysfs_remove) from [<c0494e48>] (device_del+0x7c/0x360)
[ 1012.260622] [<c0494e48>] (device_del) from [<c0613594>] (netdev_unregister_kobject+0x7c/0x80)
[ 1012.260640] [<c0613594>] (netdev_unregister_kobject) from [<c05eb0f4>] (rollback_registered_many+0x1ec/0x508)
[ 1012.260655] [<c05eb0f4>] (rollback_registered_many) from [<c05eb4ac>] (unregister_netdevice_queue+0x9c/0x130)
[ 1012.260669] [<c05eb4ac>] (unregister_netdevice_queue) from [<c05eb568>] (unregister_netdev+0x28/0x30)
[ 1012.260703] [<c05eb568>] (unregister_netdev) from [<bf5fb958>] (bnep_session+0x4d4/0x888 [bnep])
[ 1012.260732] [<bf5fb958>] (bnep_session [bnep]) from [<c00432c0>] (kthread+0x120/0x160)
[ 1012.260746] [<c00432c0>] (kthread) from [<c00090ac>] (ret_from_fork+0x14/0x28)
[ 1012.260753] Exception stack(0xdd8fdfb0 to 0xdd8fdff8)
[ 1012.260762] dfa0: 00000000 00000000 00000000 00000000
[ 1012.260772] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1012.260781] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 1012.260787] ---[ end trace 21919dd0870a28c1 ]---
[ 1012.260819] ------------[ cut here ]------------
[ 1012.260838] WARNING: CPU: 0 PID: 1535 at /opt/kernel-builder_repos/Re4son/re4son-raspberrypi-linux/all/fs/sysfs/group.c:255 sysfs_remove_group+0x98/0xa4
[ 1012.260844] sysfs group 'statistics' not found for kobject 'bnep0'
[ 1012.260847] Modules linked in: bnep hci_uart btbcm serdev bluetooth ecdh_generic fuse spidev brcmfmac brcmutil cfg80211 rfkill snd_bcm2835(C) snd_pcm raspberrypi_hwmon hwmon snd_timer snd i2c_bcm2835 spi_bcm2835aux bcm2835_codec(C) bcm2835_v4l2(C) v4l2_mem2mem spi_bcm2835 bcm2835_mmal_vchiq(C) v4l2_common videobuf2_vmalloc videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videobuf2_common videodev media vc_sm_cma(C) uio_pdrv_genirq fixed uio i2c_dev usb_f_ecm g_ether usb_f_rndis u_ether libcomposite dwc2 udc_core ip_tables x_tables ipv6
[ 1012.260995] CPU: 0 PID: 1535 Comm: kbnepd bnep0 Tainted: G WC 4.19.66-Re4son+ #1
[ 1012.260999] Hardware name: BCM2835
[ 1012.261020] [<c0017e44>] (unwind_backtrace) from [<c0014d84>] (show_stack+0x20/0x24)
[ 1012.261038] [<c0014d84>] (show_stack) from [<c06f3278>] (dump_stack+0x20/0x28)
[ 1012.261059] [<c06f3278>] (dump_stack) from [<c0024624>] (__warn+0xf0/0x118)
[ 1012.261075] [<c0024624>] (__warn) from [<c002469c>] (warn_slowpath_fmt+0x50/0x70)
[ 1012.261093] [<c002469c>] (warn_slowpath_fmt) from [<c021f370>] (sysfs_remove_group+0x98/0xa4)
[ 1012.261108] [<c021f370>] (sysfs_remove_group) from [<c021f3b0>] (sysfs_remove_groups+0x34/0x44)
[ 1012.261134] [<c021f3b0>] (sysfs_remove_groups) from [<c0492a40>] (device_remove_attrs+0x4c/0x7c)
[ 1012.261150] [<c0492a40>] (device_remove_attrs) from [<c0494f14>] (device_del+0x148/0x360)
[ 1012.261163] [<c0494f14>] (device_del) from [<c0613594>] (netdev_unregister_kobject+0x7c/0x80)
[ 1012.261181] [<c0613594>] (netdev_unregister_kobject) from [<c05eb0f4>] (rollback_registered_many+0x1ec/0x508)
[ 1012.261196] [<c05eb0f4>] (rollback_registered_many) from [<c05eb4ac>] (unregister_netdevice_queue+0x9c/0x130)
[ 1012.261210] [<c05eb4ac>] (unregister_netdevice_queue) from [<c05eb568>] (unregister_netdev+0x28/0x30)
[ 1012.261241] [<c05eb568>] (unregister_netdev) from [<bf5fb958>] (bnep_session+0x4d4/0x888 [bnep])
[ 1012.261269] [<bf5fb958>] (bnep_session [bnep]) from [<c00432c0>] (kthread+0x120/0x160)
[ 1012.261283] [<c00432c0>] (kthread) from [<c00090ac>] (ret_from_fork+0x14/0x28)
[ 1012.261290] Exception stack(0xdd8fdfb0 to 0xdd8fdff8)
[ 1012.261298] dfa0: 00000000 00000000 00000000 00000000
[ 1012.261309] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1012.261318] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 1012.261324] ---[ end trace 21919dd0870a28c2 ]---
Nothing helped, i had to reboot by ssh. But after the reboot it connected to my phone again.
@hackabean please close the issue if resolved. I've tested bt-tether
on the v1.3.0 version with an Android phone and everything is working perfectly.
Pi zero waveshare_1: iOS phone 13.2.3: Pc hôte Windows 10: hello, thank you for this project really nice. I have a problem my unit and connect to my iphone but I have no internet signal. My sharing is activate. can you tell me what is wrong. I use the default config. Thx
I have similar problem - my pwnagotchi connects to the phone and immedieatly disconnects. An addition it only works for the first pair. I wasn't able to have stable connection even so my mac adress was trusted and paired. Bluetoothctl output after typing: connect
I have similar problem - my pwnagotchi connects to the phone and immedieatly disconnects. An addition it only works for the first pair. I wasn't able to have stable connection even so my mac adress was trusted and paired. Bluetoothctl output after typing: connect says that it failed. Any ideas how could this be fixed?
delete mac address with the remove 'mac address' command and restart the pairing, it worked for me
Ok. I will try it tomorrow. Also I'm on Android 7 with MIUI 11 rom. I don't know about it's bluetooth configuration. (Only thing that can be changed is switching bluetooth on and off.)
For now thanks for advice. :)
For now thanks for advice. :)
with pleasure, :D last tip check well that the btnap and properly install.
Nope. It is still broken. Where and how should I install btnap?
After trying to confrim pair it outputs:
[CHG] Device
Pwnagotchi is not recognized as network sharing device. (Even that bt-tether is on.) Instead my phone recognizes it as numbers and contacts sharing device. Idk if it's a bug or something other.
Nope. It is still broken. Where and how should I install btnap?
https://github.com/evilsocket/pwnagotchi/issues/377 watch here
Was there a solution? @hackabean