Updated and coverted
Updated and coverted my fork from evilsocket/pwnagotchi master branch to aluminum-ice/pwnagotchi master branch removed hannadiamond repository changed pwnagotchi community plugin repository to my pwnagotchi community plugin repository removed mastodon plugin removed screenrc configuration cloned pwnagotchi community plugin repository only once removed configure pwnagotchi for the custom plugin directory from builder/pwnagotchi.yml reconfigured auto-update to point to the scifijunkie repo edited main.custom_plugins to point to /usr/local/share/pwnagotchi/custom-plugins in pwnagotchi/defaults.toml removed mastodon configuration from defaults.toml removed ntfy configuration from defaults.toml removed handshakes-m.py from default plugin removed mastodon.py from default plugin removed ntfy.py from default plugin addressed [ERROR] [update] 'tag_name' addressed rate limit exceeded addressed TypeError: Descriptors cannot not be created directly. Reran pip-compile
This commit is contained in:
MANIFEST.inMakefile
builder
pwnagotchi
__init__.py_version.pyagent.pybettercap.pydefaults.tomllog.py
requirements.txtplugins
ui
utils.pyscripts
setup.py@@ -19,7 +19,12 @@ if ! check_brcm; then
|
||||
fi
|
||||
|
||||
# start mon0
|
||||
start_monitor_interface
|
||||
if ! is_interface_up 'mon0'; then
|
||||
start_monitor_interface
|
||||
else
|
||||
stop_monitor_interface
|
||||
start_monitor_interface
|
||||
fi
|
||||
|
||||
if is_auto_mode_no_delete; then
|
||||
/usr/bin/bettercap -no-colors -caplet pwnagotchi-auto -iface mon0
|
||||
|
@@ -3,12 +3,30 @@
|
||||
# well ... it blinks the led
|
||||
blink_led() {
|
||||
for i in $(seq 1 "$1"); do
|
||||
echo 0 >/sys/class/leds/led0/brightness
|
||||
if [ -d /sys/class/leds/led0 ]
|
||||
then
|
||||
echo 0 | tee /sys/class/leds/led0/brightness
|
||||
else
|
||||
echo 0 | tee /sys/class/leds/ACT/brightness
|
||||
fi
|
||||
sleep 0.3
|
||||
echo 1 >/sys/class/leds/led0/brightness
|
||||
|
||||
if [ -d /sys/class/leds/led0 ]
|
||||
then
|
||||
echo 1 | tee /sys/class/leds/led0/brightness
|
||||
else
|
||||
echo 1 | tee /sys/class/leds/ACT/brightness
|
||||
fi
|
||||
sleep 0.3
|
||||
|
||||
done
|
||||
echo 0 >/sys/class/leds/led0/brightness
|
||||
|
||||
if [ -d /sys/class/leds/led0 ]
|
||||
then
|
||||
echo 0 | tee /sys/class/leds/led0/brightness
|
||||
else
|
||||
echo 0 | tee /sys/class/leds/ACT/brightness
|
||||
fi
|
||||
sleep 0.3
|
||||
}
|
||||
|
||||
@@ -33,20 +51,31 @@ reload_brcm() {
|
||||
|
||||
# starts mon0
|
||||
start_monitor_interface() {
|
||||
rfkill unblock all
|
||||
iw dev wlan0 set power_save off
|
||||
|
||||
ifconfig wlan0 up
|
||||
|
||||
iw phy "$(iw phy | head -1 | cut -d" " -f2)" interface add mon0 type monitor && ifconfig mon0 up
|
||||
|
||||
# If wlan0 is NOT taken down after bringing up mon0, then when switching to AUTO you will get:
|
||||
# error 400: error while initializing mon0 to channel 1: iw: out=command failed: Device or resource busy (-16) err=exit status 240
|
||||
ifconfig wlan0 down
|
||||
}
|
||||
|
||||
# stops mon0
|
||||
stop_monitor_interface() {
|
||||
ifconfig mon0 down && iw dev mon0 del
|
||||
ifconfig wlan0 up
|
||||
}
|
||||
|
||||
# returns 0 if the specificed network interface is up
|
||||
is_interface_up() {
|
||||
if grep -qi 'up' /sys/class/net/$1/operstate; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
return 1
|
||||
}
|
||||
|
||||
# returns 0 if conditions for AUTO mode are met
|
||||
|
Reference in New Issue
Block a user