Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

epoch cycles #1

Open
makerph opened this issue Jun 3, 2021 · 3 comments
Open

epoch cycles #1

makerph opened this issue Jun 3, 2021 · 3 comments

Comments

@makerph
Copy link

makerph commented Jun 3, 2021

Tried this and it successfully connect to my home network however epoch continues. Already applied the changes on /bin/pwnagotchi but seems that it does not to catch the mon down. Is there's any more files need to change? or there are any specific instructions to do it. Thanks

@troystauffer
Copy link
Owner

the pwnagotchi PR has been accepted and is part of the latest release. have you tried updating and running it since then?

@makerph
Copy link
Author

makerph commented Oct 7, 2021

just tried it with the latest image of pwnagotchi have this on log:

  • 20:03:08 [INFO] [epoch 0] duration=00:00:14 slept_for=00:00:00 blind=0 sad=0 bored=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=100% mem=20% temperature=41C reward=-0.2
  • 20:04:06 [INFO] [home_base] FOUND home network nearby on channel 6 (rssi: -66)
  • 20:04:06 [INFO] [home_base] Starting association...
  • 20:04:06 [INFO] [home_base] sending command to Bettercap to stop using mon0...
  • 20:04:07 [INFO] sending association frame to NETTWOW (90:61:0c:70:09:de Fida International (S) Pte Ltd) on channel 10 [0 clients], -79 dBm...
  • 20:04:07 [INFO] [home_base] ensuring all wpa_supplicant processes are terminated...
  • 20:04:09 [INFO] [epoch 1] duration=00:01:01 slept_for=00:00:53 blind=0 sad=0 bored=0 inactive=0 active=1 peers=0 tot_bond=0.00 avg_bond=0.00 hops=1 missed=0 deauths=0 assocs=1 handshakes=0 cpu=90% mem=30% temperature=41C reward=0.10071428571428571
  • 20:04:13 [INFO] [home_base] disabling monitor mode...
  • 20:04:27 [INFO] [home_base] randomizing wlan0 MAC address prior to connecting...
  • 20:04:32 [INFO] [home_base] starting up wlan0 again...
  • 20:04:40 [INFO] [home_base] setting wlan0 channel to match the target...
  • 20:04:46 [INFO] [home_base] writing to wpa_supplicant.conf file...
  • 20:04:46 [INFO] [home_base] starting wpa_supplicant background process...
  • 20:04:51 [INFO] [home_base] connecting to wifi...
  • 20:04:57 [INFO] [home_base] trying to get an IP address on the network via DHCP...
  • 20:05:04 [INFO] [home_base] finished connecting to home wifi
  • 20:05:05 [INFO] [home_base] FOUND home network nearby on channel 6 (rssi: -55)
  • 20:05:05 [INFO] [home_base] Starting association...
  • 20:05:05 [INFO] [home_base] sending command to Bettercap to stop using mon0...
  • 20:05:05 [INFO] error 400: module wifi is not running
  • 20:05:49 [INFO] sending association frame to NETTWOW (90:61:0c:70:09:de Fida International (S) Pte Ltd) on channel 10 [0 clients], -79 dBm...
  • 20:05:49 [INFO] error 400: could not find interface mon0: no interface matching 'mon0' found.
  • 20:05:49 [ERROR] error 400: could not find interface mon0: no interface matching 'mon0' found.
  • 20:05:51 [INFO] [epoch 2] duration=00:01:41 slept_for=00:00:53 blind=0 sad=0 bored=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=90% mem=40% temperature=40C reward=-0.06666666666666667
  • 20:06:26 [INFO] [ai] creating model ...
  • 20:06:56 [INFO] sending association frame to NETTWOW (90:61:0c:70:09:de Fida International (S) Pte Ltd) on channel 10 [0 clients], -79 dBm...
  • 20:06:56 [INFO] error 400: could not find interface mon0: no interface matching 'mon0' found.
  • 20:06:56 [ERROR] error 400: could not find interface mon0: no interface matching 'mon0' found.
  • 20:06:58 [INFO] [epoch 3] duration=00:01:07 slept_for=00:00:53 blind=0 sad=0 bored=0 inactive=2 active=0 peers=0 tot_bond=0.00 avg_bond=0.00 hops=0 missed=0 deauths=0 assocs=0 handshakes=0 cpu=100% mem=50% temperature=40C reward=-0.1
  • 20:08:03 [INFO] sending association frame to NETTWOW (90:61:0c:70:09:de Fida International (S) Pte Ltd) on channel 10 [0 clients], -79 dBm...
  • 20:08:03 [INFO] error 400: could not find interface mon0: no interface matching 'mon0' found.
  • 20:08:03 [ERROR] error 400: could not find interface mon0: no interface matching 'mon0' found.
  • 20:08:05 [INFO] [epoch 4] duration=00:01:06 slept_for=00:00:53 blind=0 sad=0 bored=0 inactive=3 active=0 peers=0 tot_bond=0.00 avg_bond=0.00 hops=0 missed=0 deauths=0 assocs=0 handshakes=0 cpu=100% mem=50% temperature=40C reward=-0.12
  • 20:09:12 [INFO] sending association frame to NETTWOW (90:61:0c:70:09:de Fida International (S) Pte Ltd) on channel 10 [0 clients], -79 dBm...
  • 20:09:13 [INFO] error 400: could not find interface mon0: no interface matching 'mon0' found.
  • 20:09:13 [ERROR] error 400: could not find interface mon0: no interface matching 'mon0' found.
  • 20:09:16 [INFO] [epoch 5] duration=00:01:11 slept_for=00:00:53 blind=0 sad=0 bored=0 inactive=4 active=0 peers=0 tot_bond=0.00 avg_bond=0.00 hops=0 missed=0 deauths=0 assocs=0 handshakes=0 cpu=90% mem=50% temperature=41C reward=-0.13333333333333333

epoch still continuing even the monitor mode is disabled. Is this the normal behavior?

@makerph
Copy link
Author

makerph commented Oct 23, 2021

Edit: 6/25/2022

I just check this recently and verified it that the PR is indeed merge and included to v.1.5.5 however the epoch cycle still continuing .

2022-06-25 08:48:42,910] [INFO] [home_base] FOUND home network nearby on channel 6 (rssi: -53)
[2022-06-25 08:48:42,913] [INFO] [home_base] Starting association...
[2022-06-25 08:48:42,914] [INFO] [home_base] sending command to Bettercap to stop using mon0...
[2022-06-25 08:48:42,944] [INFO] [epoch 1] duration=00:00:44 slept_for=00:00:43 blind=1 sad=0 bored=0 inactive=2 active=0 peers=0 tot_bond=0.00 avg_bond=0.00 hop s=0 missed=0 deauths=0 assocs=0 handshakes=0 cpu=50% mem=40% temperature=56C reward=-0.35
[2022-06-25 08:48:43,249] [INFO] [home_base] ensuring all wpa_supplicant processes are terminated...
[2022-06-25 08:48:48,469] [INFO] [home_base] disabling monitor mode...
[2022-06-25 08:48:58,334] [INFO] [ai] creating model ...
[2022-06-25 08:49:02,262] [INFO] [home_base] starting up wlan0 again...
[2022-06-25 08:49:10,561] [INFO] [home_base] setting wlan0 channel to match the target...
[2022-06-25 08:49:15,843] [INFO] [home_base] writing to wpa_supplicant.conf file...
[2022-06-25 08:49:15,862] [INFO] [home_base] starting wpa_supplicant background process...
[2022-06-25 08:49:21,120] [INFO] [home_base] connecting to wifi...
[2022-06-25 08:49:26,742] [INFO] [home_base] trying to get an IP address on the network via DHCP...
[2022-06-25 08:49:33,309] [INFO] [home_base] finished connecting to home wifi
[2022-06-25 08:49:33,310] [INFO] [home_base] FOUND home network nearby on channel 6 (rssi: -77)
[2022-06-25 08:49:33,326] [INFO] [home_base] The signal strength is too low (-77) to connect.
[2022-06-25 08:49:37,734] [INFO] [epoch 2] duration=00:00:54 slept_for=00:00:43 blind=2 sad=0 bored=0 inactive=3 active=0 peers=0 tot_bond=0.00 avg_bond=0.00 hop s=0 missed=0 deauths=0 assocs=0 handshakes=0 cpu=30% mem=50% temperature=57C reward=-0.4
[2022-06-25 08:49:38,015] [INFO] [update] checking for updates ...
[2022-06-25 08:49:44,684] [INFO] [update] done
[2022-06-25 08:50:25,907] [INFO] [epoch 3] duration=00:00:48 slept_for=00:00:43 blind=3 sad=0 bored=0 inactive=4 active=0 peers=0 tot_bond=0.00 avg_bond=0.00 hop s=0 missed=0 deauths=0 assocs=0 handshakes=0 cpu=45% mem=50% temperature=57C reward=-0.425
[2022-06-25 08:51:11,286] [INFO] [epoch 4] duration=00:00:45 slept_for=00:00:43 blind=4 sad=0 bored=0 inactive=5 active=0 peers=0 tot_bond=0.00 avg_bond=0.00 hop s=0 missed=0 deauths=0 assocs=0 handshakes=0 cpu=40% mem=50% temperature=56C reward=-0.44
[2022-06-25 08:51:57,060] [INFO] [epoch 5] duration=00:00:45 slept_for=00:00:43 blind=5 sad=0 bored=0 inactive=6 active=0 peers=0 tot_bond=0.00 avg_bond=0.00 hop s=0 missed=0 deauths=0 assocs=0 handshakes=0 cpu=40% mem=50% temperature=57C reward=-0.45
[2022-06-25 08:52:43,332] [INFO] [epoch 6] duration=00:00:46 slept_for=00:00:43 blind=6 sad=0 bored=0 inactive=7 active=0 peers=0 tot_bond=0.00 avg_bond=0.00 hop s=0 missed=0 deauths=0 assocs=0 handshakes=0 cpu=57% mem=60% temperature=60C reward=-0.45714285714285713
[2022-06-25 08:53:31,439] [INFO] [epoch 7] duration=00:00:48 slept_for=00:00:43 blind=7 sad=0 bored=0 inactive=8 active=0 peers=0 tot_bond=0.00 avg_bond=0.00 hop s=0 missed=0 deauths=0 assocs=0 handshakes=0 cpu=43% mem=50% temperature=58C reward=-0.4625
[2022-06-25 08:54:16,829] [INFO] [epoch 8] duration=00:00:45 slept_for=00:00:43 blind=8 sad=0 bored=0 inactive=9 active=0 peers=0 tot_bond=0.00 avg_bond=0.00 hops=0 missed=0 deauths=0 assocs=0 handshakes=0 cpu=38% mem=50% temperature=58C reward=-0.4666666666666667
[2022-06-25 08:55:41,260] [INFO] [ai] loading /root/brain.nn ...
[2022-06-25 08:55:44,894] [INFO] [epoch 9] duration=00:01:28 slept_for=00:01:26 blind=9 sad=0 bored=0 inactive=10 active=0 peers=0 tot_bond=0.00 avg_bond=0.00 hops=0 missed=0 deauths=0 assocs=0 handshakes=0 cpu=47% mem=60% temperature=59C reward=-0.47000000000000003
[2022-06-25 08:57:13,558] [INFO] [epoch 10] duration=00:01:28 slept_for=00:01:26 blind=10 sad=0 bored=1 inactive=11 active=0 peers=0 tot_bond=0.00 avg_bond=0.00 hops=0 missed=0 deauths=0 assocs=0 handshakes=0 cpu=40% mem=60% temperature=59C reward=-0.4727272727272727
[2022-06-25 08:57:13,564] [WARNING] 11 epochs with no activity -> bored
[2022-06-25 08:58:42,933] [INFO] [epoch 11] duration=00:01:29 slept_for=00:01:26 blind=11 sad=0 bored=2 inactive=12 active=0 peers=0 tot_bond=0.00 avg_bond=0.00 hops=0 missed=0 deauths=0 assocs=0 handshakes=0 cpu=39% mem=60% temperature=59C reward=-0.475
[2022-06-25 08:58:42,940] [WARNING] 12 epochs with no activity -> bored
[2022-06-25 09:00:12,191] [INFO] [epoch 12] duration=00:01:29 slept_for=00:01:26 blind=12 sad=0 bored=3 inactive=13 active=0 peers=0 tot_bond=0.00 avg_bond=0.00 hops=0 missed=0 deauths=0 assocs=0 handshakes=0 cpu=40% mem=60% temperature=59C reward=-0.47692307692307695
[2022-06-25 09:00:12,215] [WARNING] 13 epochs with no activity -> bored
[2022-06-25 09:01:41,737] [INFO] [epoch 13] duration=00:01:29 slept_for=00:01:26 blind=13 sad=1 bored=0 inactive=14 active=0 peers=0 tot_bond=0.00 avg_bond=0.00 hops=0 missed=0 deauths=0 assocs=0 handshakes=0 cpu=38% mem=70% temperature=58C reward=-0.4785714285714286
[2022-06-25 09:01:41,748] [WARNING] 14 epochs with no activity -> sad
[2022-06-25 09:02:04,308] [INFO] [ai] learning for 50 epochs ...
[2022-06-25 09:02:09,249] [INFO] [ai] setting new policy:
[2022-06-25 09:02:09,256] [INFO] [ai] ! min_rssi: -149 -> -195
[2022-06-25 09:02:09,258] [INFO] [ai] ! ap_ttl: 185 -> 166
[2022-06-25 09:02:09,265] [INFO] [ai] ! sta_ttl: 177 -> 201
[2022-06-25 09:02:09,266] [INFO] [ai] ! recon_time: 43 -> 10
[2022-06-25 09:02:09,272] [INFO] [ai] ! max_inactive_scale: 9 -> 8
[2022-06-25 09:02:09,279] [INFO] [ai] ! hop_recon_time: 24 -> 15
[2022-06-25 09:02:09,286] [INFO] [ai] ! min_recon_time: 18 -> 20
[2022-06-25 09:02:09,293] [INFO] [ai] ! max_interactions: 4 -> 25
[2022-06-25 09:02:09,305] [INFO] [ai] ! max_misses_for_recon: 8 -> 4
[2022-06-25 09:02:09,319] [INFO] [ai] ! excited_num_epochs: 7 -> 21
[2022-06-25 09:02:09,325] [INFO] [ai] ! bored_num_epochs: 11 -> 13
[2022-06-25 09:02:09,342] [INFO] [ai] ! sad_num_epochs: 14 -> 23
[2022-06-25 09:02:09,348] [INFO] [ai] ! channels: [1, 2, 4, 8, 9] -> [1, 2, 3, 4, 7, 8, 9, 11]
[2022-06-25 09:03:10,526] [INFO] [epoch 14] duration=00:01:28 slept_for=00:01:26 blind=14 sad=0 bored=1 inactive=15 active=0 peers=0 tot_bond=0.00 avg_bond=0.00 hops=0 missed=0 deauths=0 assocs=0 handshakes=0 cpu=36% mem=70% temperature=59C reward=-0.48
[2022-06-25 09:03:10,531] [INFO] [ai] --- training epoch 1/50 ---
[2022-06-25 09:03:10,538] [WARNING] 15 epochs with no activity -> bored
[2022-06-25 09:03:10,546] [INFO] [ai] REWARD: -0.480000
[2022-06-25 09:03:10,562] [INFO] [ai] observation:
[2022-06-25 09:03:10,571] [INFO] aps
[2022-06-25 09:03:10,573] [INFO] sta
[2022-06-25 09:03:10,575] [INFO] peers
[2022-06-25 09:03:10,577] [INFO] [ai] saving model to /root/brain.nn ...
[2022-06-25 09:03:12,214] [INFO] [ai] saving /root/brain.json
[2022-06-25 09:03:28,542] [INFO] [ai] setting new policy:
[2022-06-25 09:03:28,549] [INFO] [ai] ! min_rssi: -195 -> -102
[2022-06-25 09:03:28,561] [INFO] [ai] ! ap_ttl: 166 -> 142
[2022-06-25 09:03:28,567] [INFO] [ai] ! sta_ttl: 201 -> 119
[2022-06-25 09:03:28,573] [INFO] [ai] ! recon_time: 10 -> 7
[2022-06-25 09:03:28,579] [INFO] [ai] ! max_inactive_scale: 8 -> 3
[2022-06-25 09:03:28,591] [INFO] [ai] ! recon_inactive_multiplier: 2 -> 1
[2022-06-25 09:03:28,597] [INFO] [ai] ! hop_recon_time: 15 -> 13
[2022-06-25 09:03:28,609] [INFO] [ai] ! min_recon_time: 20 -> 1
[2022-06-25 09:03:28,615] [INFO] [ai] ! max_interactions: 25 -> 15
[2022-06-25 09:03:28,626] [INFO] [ai] ! max_misses_for_recon: 4 -> 3
[2022-06-25 09:03:28,633] [INFO] [ai] ! excited_num_epochs: 21 -> 5
[2022-06-25 09:03:28,649] [INFO] [ai] ! bored_num_epochs: 13 -> 25
[2022-06-25 09:03:28,656] [INFO] [ai] ! sad_num_epochs: 23 -> 12
[2022-06-25 09:03:28,662] [INFO] [ai] ! channels: [1, 2, 3, 4, 7, 8, 9, 11] -> [3, 4, 6, 7, 8, 9]
[2022-06-25 09:03:34,159] [INFO] [epoch 15] duration=00:00:23 slept_for=00:00:20 blind=15 sad=1 bored=0 inactive=16 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=70% temperature=60C reward=-0.48125
[2022-06-25 09:03:34,170] [INFO] [ai] --- training epoch 2/50 ---
[2022-06-25 09:03:34,178] [WARNING] 16 epochs with no activity -> sad
[2022-06-25 09:03:34,180] [INFO] [ai] REWARD: -0.481250
[2022-06-25 09:03:34,221] [INFO] [ai] observation:
[2022-06-25 09:03:34,222] [INFO] aps
[2022-06-25 09:03:34,223] [INFO] sta
[2022-06-25 09:03:34,225] [INFO] peers
[2022-06-25 09:03:34,226] [INFO] [ai] saving model to /root/brain.nn ...
[2022-06-25 09:03:34,717] [INFO] [ai] saving /root/brain.json
[2022-06-25 09:03:35,201] [INFO] [ai] setting new policy:
[2022-06-25 09:03:35,203] [INFO] [ai] ! min_rssi: -102 -> -58
[2022-06-25 09:03:35,205] [INFO] [ai] ! ap_ttl: 142 -> 275
[2022-06-25 09:03:35,241] [INFO] [ai] ! sta_ttl: 119 -> 67
[2022-06-25 09:03:35,244] [INFO] [ai] ! recon_time: 7 -> 22
[2022-06-25 09:03:35,265] [INFO] [ai] ! max_inactive_scale: 3 -> 9
[2022-06-25 09:03:35,302] [INFO] [ai] ! hop_recon_time: 13 -> 50
[2022-06-25 09:03:35,317] [INFO] [ai] ! min_recon_time: 1 -> 15
[2022-06-25 09:03:35,344] [INFO] [ai] ! max_interactions: 15 -> 2
[2022-06-25 09:03:35,350] [INFO] [ai] ! max_misses_for_recon: 3 -> 6
[2022-06-25 09:03:35,358] [INFO] [ai] ! excited_num_epochs: 5 -> 17
[2022-06-25 09:03:35,359] [INFO] [ai] ! bored_num_epochs: 25 -> 23
[2022-06-25 09:03:35,366] [INFO] [ai] ! sad_num_epochs: 12 -> 5
[2022-06-25 09:03:35,373] [INFO] [ai] ! channels: [3, 4, 6, 7, 8, 9] -> [2, 3, 4, 6, 8]
[2022-06-25 09:03:44,112] [INFO] [epoch 16] duration=00:00:09 slept_for=00:00:07 blind=16 sad=2 bored=0 inactive=17 active=0 peers=0 tot_bond=0.00 avg_bond=0.00 hops=0 missed=0 deauths=0 assocs=0 handshakes=0 cpu=41% mem=70% temperature=60C reward=-0.4823529411764706

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants