⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.91
Server IP:
157.245.101.34
Server:
Linux skvinfotech-website 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
etc
/
wpa_supplicant
/
Edit File: action_wpa.sh
#!/bin/sh # Action script to enable/disable wpa-roam interfaces in reaction to # ifplugd events. # # Copyright: Copyright (c) 2008-2010, Kel Modderman
# License: GPL-2 # PATH=/sbin:/usr/sbin:/bin:/usr/bin if [ ! -x /sbin/wpa_action ]; then exit 0 fi # ifplugd(8) -
# # If an ifplugd managed interface is brought up, disconnect any # wpa-roam managed interfaces so that only one "roaming" interface # remains active on the system. IFPLUGD_IFACE="${1}" case "${2}" in up) COMMAND=disconnect ;; down) COMMAND=reconnect ;; *) echo "$0: unknown arguments: ${@}" >&2 exit 1 ;; esac for CTRL in /run/wpa_supplicant/*; do [ -S "${CTRL}" ] || continue IFACE="${CTRL#/run/wpa_supplicant/}" # skip if ifplugd is managing this interface if [ "${IFPLUGD_IFACE}" = "${IFACE}" ]; then continue fi if wpa_action "${IFACE}" check; then wpa_cli -i "${IFACE}" "${COMMAND}" fi done
Simpan