From a230f4682823c1032413cd4974f4f3a4a1d6d389 Mon Sep 17 00:00:00 2001
From: Silvino Silva
Date: Sat, 9 Nov 2019 00:50:32 +0000
Subject: initial update to crux 3.5
---
core/conf/iptables/bridge.v4 | 33 ++++++++++++------------
core/conf/iptables/server.v4 | 60 +++++++++++++++++++++++---------------------
core/install.html | 18 ++++++-------
index.html | 2 +-
tools/qemu.html | 4 +--
tools/storage.html | 2 +-
tools/wireless.html | 38 ++++++++++++++++++++++------
7 files changed, 93 insertions(+), 64 deletions(-)
diff --git a/core/conf/iptables/bridge.v4 b/core/conf/iptables/bridge.v4
index 4930262..bea9be0 100644
--- a/core/conf/iptables/bridge.v4
+++ b/core/conf/iptables/bridge.v4
@@ -1,34 +1,34 @@
-# Generated by iptables-save v1.8.2 on Fri Jun 28 01:22:10 2019
+# Generated by iptables-save v1.8.2 on Sun Jul 7 23:48:36 2019
*security
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT
-# Completed on Fri Jun 28 01:22:10 2019
-# Generated by iptables-save v1.8.2 on Fri Jun 28 01:22:10 2019
+# Completed on Sun Jul 7 23:48:36 2019
+# Generated by iptables-save v1.8.2 on Sun Jul 7 23:48:36 2019
*raw
-:PREROUTING ACCEPT [2:80]
-:OUTPUT ACCEPT [3:4544]
+:PREROUTING ACCEPT [0:0]
+:OUTPUT ACCEPT [1:2468]
COMMIT
-# Completed on Fri Jun 28 01:22:10 2019
-# Generated by iptables-save v1.8.2 on Fri Jun 28 01:22:10 2019
+# Completed on Sun Jul 7 23:48:36 2019
+# Generated by iptables-save v1.8.2 on Sun Jul 7 23:48:36 2019
*nat
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
COMMIT
-# Completed on Fri Jun 28 01:22:10 2019
-# Generated by iptables-save v1.8.2 on Fri Jun 28 01:22:10 2019
+# Completed on Sun Jul 7 23:48:36 2019
+# Generated by iptables-save v1.8.2 on Sun Jul 7 23:48:36 2019
*mangle
-:PREROUTING ACCEPT [2:80]
-:INPUT ACCEPT [2:80]
+:PREROUTING ACCEPT [0:0]
+:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
-:OUTPUT ACCEPT [3:4544]
-:POSTROUTING ACCEPT [2:2292]
+:OUTPUT ACCEPT [1:2468]
+:POSTROUTING ACCEPT [0:0]
COMMIT
-# Completed on Fri Jun 28 01:22:10 2019
-# Generated by iptables-save v1.8.2 on Fri Jun 28 01:22:10 2019
+# Completed on Sun Jul 7 23:48:36 2019
+# Generated by iptables-save v1.8.2 on Sun Jul 7 23:48:36 2019
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
@@ -92,6 +92,7 @@ COMMIT
-A FORWARD -d 10.0.0.4/32 -i br0 -o br0 -m physdev --physdev-in enp8s0 -j srv_git_in
-A FORWARD -i br0 -o br0 -p tcp -m physdev --physdev-in enp8s0 -m tcp --sport 443 --dport 1024:65535 -j ACCEPT
-A FORWARD -d 10.0.0.3/32 -i br0 -o br0 -m physdev --physdev-in enp8s0 -j cli_http_in
+-A FORWARD -d 10.0.0.4/32 -i br0 -o br0 -m physdev --physdev-in enp8s0 -j cli_http_in
-A FORWARD -i br0 -o br0 -p udp -m udp --sport 520 --dport 519 -j DROP
-A FORWARD -i br0 -o br0 -p udp -m udp --sport 520 --dport 520 -j DROP
-A FORWARD -j LOG --log-prefix "iptables: FORWARD: " --log-level 7
@@ -220,4 +221,4 @@ COMMIT
-A srv_ssh_out -p tcp -m tcp --sport 22 --dport 1024:65535 -m state --state ESTABLISHED -j ACCEPT
-A srv_ssh_out -j RETURN
COMMIT
-# Completed on Fri Jun 28 01:22:10 2019
+# Completed on Sun Jul 7 23:48:36 2019
diff --git a/core/conf/iptables/server.v4 b/core/conf/iptables/server.v4
index ed202ee..678800b 100644
--- a/core/conf/iptables/server.v4
+++ b/core/conf/iptables/server.v4
@@ -1,34 +1,34 @@
-# Generated by iptables-save v1.8.2 on Sat Jun 8 19:50:25 2019
+# Generated by iptables-save v1.8.3 on Mon Jul 8 00:42:39 2019
*security
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT
-# Completed on Sat Jun 8 19:50:25 2019
-# Generated by iptables-save v1.8.2 on Sat Jun 8 19:50:25 2019
+# Completed on Mon Jul 8 00:42:39 2019
+# Generated by iptables-save v1.8.3 on Mon Jul 8 00:42:39 2019
*raw
:PREROUTING ACCEPT [0:0]
-:OUTPUT ACCEPT [0:0]
+:OUTPUT ACCEPT [1:132]
COMMIT
-# Completed on Sat Jun 8 19:50:25 2019
-# Generated by iptables-save v1.8.2 on Sat Jun 8 19:50:25 2019
+# Completed on Mon Jul 8 00:42:39 2019
+# Generated by iptables-save v1.8.3 on Mon Jul 8 00:42:39 2019
*nat
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
COMMIT
-# Completed on Sat Jun 8 19:50:25 2019
-# Generated by iptables-save v1.8.2 on Sat Jun 8 19:50:25 2019
+# Completed on Mon Jul 8 00:42:39 2019
+# Generated by iptables-save v1.8.3 on Mon Jul 8 00:42:39 2019
*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
-:OUTPUT ACCEPT [0:0]
+:OUTPUT ACCEPT [1:132]
:POSTROUTING ACCEPT [0:0]
COMMIT
-# Completed on Sat Jun 8 19:50:25 2019
-# Generated by iptables-save v1.8.2 on Sat Jun 8 19:50:25 2019
+# Completed on Mon Jul 8 00:42:39 2019
+# Generated by iptables-save v1.8.3 on Mon Jul 8 00:42:39 2019
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
@@ -71,26 +71,30 @@ COMMIT
:srv_ssh_out - [0:0]
-A INPUT -s 127.0.0.0/8 -d 127.0.0.0/8 -i lo -j ACCEPT
-A INPUT -j blocker
--A INPUT -s 212.55.154.174/32 -d 10.0.0.254/32 -i enp8s0 -j cli_dns_in
--A INPUT -s 10.0.0.0/8 -d 10.0.0.254/32 -i enp8s0 -j srv_https_in
--A INPUT -s 10.0.0.0/8 -d 10.0.0.254/32 -i enp8s0 -j srv_ssh_in
--A INPUT -s 10.0.0.0/8 -d 10.0.0.254/32 -i enp8s0 -j srv_git_in
--A INPUT -d 10.0.0.254/32 -i enp8s0 -j srv_https_in
--A INPUT -d 10.0.0.254/32 -i enp8s0 -j cli_https_in
--A INPUT -d 10.0.0.254/32 -i enp8s0 -j srv_ssh_in
--A INPUT -d 10.0.0.254/32 -i enp8s0 -j srv_git_in
+-A INPUT -s 10.0.0.254/32 -d 10.0.0.4/32 -i ens3 -j cli_dns_in
+-A INPUT -s 10.0.0.0/8 -d 10.0.0.4/32 -i ens3 -j srv_https_in
+-A INPUT -s 10.0.0.0/8 -d 10.0.0.4/32 -i ens3 -j srv_ssh_in
+-A INPUT -s 10.0.0.0/8 -d 10.0.0.4/32 -i ens3 -j srv_git_in
+-A INPUT -s 10.0.0.0/8 -d 10.0.0.4/32 -i ens3 -j cli_http_in
+-A INPUT -d 10.0.0.4/32 -i ens3 -j srv_https_in
+-A INPUT -d 10.0.0.4/32 -i ens3 -j cli_https_in
+-A INPUT -d 10.0.0.4/32 -i ens3 -j cli_http_in
+-A INPUT -d 10.0.0.4/32 -i ens3 -j srv_ssh_in
+-A INPUT -d 10.0.0.4/32 -i ens3 -j srv_git_in
-A INPUT -j LOG --log-prefix "iptables: INPUT: " --log-level 7
-A FORWARD -j LOG --log-prefix "iptables: FORWARD: " --log-level 7
-A OUTPUT -s 127.0.0.0/8 -d 127.0.0.0/8 -o lo -j ACCEPT
-A OUTPUT -j blocker
--A OUTPUT -s 10.0.0.254/32 -d 212.55.154.174/32 -o enp8s0 -j cli_dns_out
--A OUTPUT -s 10.0.0.254/32 -d 10.0.0.0/8 -o enp8s0 -j srv_https_out
--A OUTPUT -s 10.0.0.254/32 -d 10.0.0.0/8 -o enp8s0 -j srv_ssh_out
--A OUTPUT -s 10.0.0.254/32 -d 10.0.0.0/8 -o enp8s0 -j srv_git_out
--A OUTPUT -s 10.0.0.254/32 -o enp8s0 -j cli_https_out
--A OUTPUT -s 10.0.0.254/32 -o enp8s0 -j srv_https_out
--A OUTPUT -d 10.0.0.0/8 -o enp8s0 -j srv_ssh_out
--A OUTPUT -d 10.0.0.0/8 -o enp8s0 -j srv_git_out
+-A OUTPUT -s 10.0.0.4/32 -d 10.0.0.254/32 -o ens3 -j cli_dns_out
+-A OUTPUT -s 10.0.0.4/32 -d 10.0.0.0/8 -o ens3 -j cli_http_out
+-A OUTPUT -s 10.0.0.4/32 -d 10.0.0.0/8 -o ens3 -j srv_https_out
+-A OUTPUT -s 10.0.0.4/32 -d 10.0.0.0/8 -o ens3 -j srv_ssh_out
+-A OUTPUT -s 10.0.0.4/32 -d 10.0.0.0/8 -o ens3 -j srv_git_out
+-A OUTPUT -s 10.0.0.4/32 -o ens3 -j cli_https_out
+-A OUTPUT -s 10.0.0.4/32 -o ens3 -j cli_http_out
+-A OUTPUT -s 10.0.0.4/32 -o ens3 -j srv_https_out
+-A OUTPUT -d 10.0.0.0/8 -o ens3 -j srv_ssh_out
+-A OUTPUT -d 10.0.0.0/8 -o ens3 -j srv_git_out
-A OUTPUT -j LOG --log-prefix "iptables: OUTPUT: " --log-level 7
-A blocker -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -m state --state NEW -m limit --limit 5/min --limit-burst 7 -j LOG --log-prefix "iptables: drop sync: " --log-level 7
-A blocker -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -m state --state NEW -j DROP
@@ -201,4 +205,4 @@ COMMIT
-A srv_ssh_out -p tcp -m tcp --sport 22 --dport 1024:65535 -m state --state ESTABLISHED -j ACCEPT
-A srv_ssh_out -j RETURN
COMMIT
-# Completed on Sat Jun 8 19:50:25 2019
+# Completed on Mon Jul 8 00:42:39 2019
diff --git a/core/install.html b/core/install.html
index 1526c12..6ee381b 100644
--- a/core/install.html
+++ b/core/install.html
@@ -2,20 +2,20 @@
- 1.1. Install Crux 3.4
+ 1.1. Install Crux 3.5
Core OS Index
- 1.1. Install Crux 3.4
+ 1.1. Install Crux 3.5
- Installation of minimal Crux 3.4 Gnu\Linux system,
+
Installation of minimal Crux 3.5 Gnu\Linux system,
with selected packages from core, opt and contrib
ports. Process of installation documented can be
executed from iso or from existing gnu\linux installation.
Read
- Hand book 3.4,
+ Hand book 3.4,
.
If you are booting from crux iso and is not your keyboard
@@ -34,10 +34,10 @@
iso from master repo and checks md5sum.
- $ curl -k -O https://serverop.de/crux/crux-3.4/iso/crux-3.4.iso
- $ curl -k -O https://serverop.de/crux/crux-3.4/iso/crux-3.4.md5
- $ md5sum crux-3.4.iso
- 73bf4d301e2dcfb0636cb7fc2a9e8fde crux-3.4.iso
+ $ curl -k -O https://serverop.de/crux/crux-3.5/iso/crux-3.5.iso
+ $ curl -k -O https://serverop.de/crux/crux-3.5/iso/crux-3.5.md5
+ $ md5sum crux-3.5.iso
+ 73bf4d301e2dcfb0636cb7fc2a9e8fde crux-3.5.iso
1.1.2. Prepare target
@@ -240,7 +240,7 @@
# modprobe isofs
# modprobe loop
- # mount -o loop crux-3.4.iso $CHROOT/media
+ # mount -o loop crux-3.5.iso $CHROOT/media
1.1.4. Install Crux
diff --git a/index.html b/index.html
index 8a25df0..ae576c8 100644
--- a/index.html
+++ b/index.html
@@ -28,7 +28,7 @@
#
NAME=ports
URL=git://hive.gnu.systems/ports.git
- BRANCH=stable-3.4
+ BRANCH=stable-3.5
destination=/usr/ports/ports
PORTS_DIR="/usr/ports"
diff --git a/tools/qemu.html b/tools/qemu.html
index d6c1738..262781e 100644
--- a/tools/qemu.html
+++ b/tools/qemu.html
@@ -176,13 +176,13 @@
the current setting?
Fix/Ignore? Fix
- (parted) resize 3 100%
+ (parted) resizepart 3 100%
(parted) quit
- # resize2fs /dev/mapper/nbd0p3
# e2fsck /dev/mapper/nbd0p3
+ # resize2fs /dev/mapper/nbd0p3
3. Network
diff --git a/tools/storage.html b/tools/storage.html
index 3a0a064..5f7e5e3 100644
--- a/tools/storage.html
+++ b/tools/storage.html
@@ -143,8 +143,8 @@
images read resize images
- # resize2fs /dev/sda3
# e2fsck /dev/sda3
+ # resize2fs /dev/sda3
Tools Index
diff --git a/tools/wireless.html b/tools/wireless.html
index f4eeddb..afb12b3 100644
--- a/tools/wireless.html
+++ b/tools/wireless.html
@@ -13,11 +13,7 @@
# iwconfig wlp2s0 essid name_of_network
- Recover Password WPS
-
- Tested on debian system only.
-
- First get mac address of the target cell;
+ To get mac address of the target cell;
# iwlist wlp2s0 scan
@@ -29,6 +25,11 @@
Cell 03 - Address: A8:A6:68:98:0C:C5
+
+ Recover Password WPS
+
+ First check processes that interfere with state of the interface and kill them;
+
# airmon-ng check
@@ -57,7 +58,7 @@
# kill -9 1271
- Just to be sure that everything is as it should;
+ If wireless card is intel;
# rmmod iwlmvm
@@ -82,6 +83,18 @@
(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;
@@ -91,8 +104,19 @@
Start the magic;
- # reaver -i mon0 -b A8:A6:68:98:0C:C5 -vv
+ # 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
+
--
cgit 1.4.1-2-gfad0
From 994cbeef3795b659e166d9aea93d4a6ca3010246 Mon Sep 17 00:00:00 2001
From: Silvino Silva
Date: Sun, 1 Dec 2019 18:43:31 +0000
Subject: change core index from 3.4 to 3.5
---
core/index.html | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/core/index.html b/core/index.html
index 0900939..72af003 100644
--- a/core/index.html
+++ b/core/index.html
@@ -11,20 +11,20 @@
Core OS
Core OS covers installation and configuration of
- basic functionality of Crux 3.4 Gnu\Linux operating system.
+ basic functionality of Crux 3.5 Gnu\Linux operating system.
This documentation try's to follow Crux HandBook installation
method diverges, for example, by only installing and
documenting gpt and grub2.
-
Read Crux HandBook,
+
Read Crux HandBook,
you can ask for help on freenode #crux. Check scripts
folder the install process is automated and ports
for extra ports used during the installation.
- 1. Install Crux 3.4 Gnu/Linux
+ 1. Install Crux 3.5 Gnu/Linux
- - 1.1. Install Crux 3.4
+
- 1.1. Install Crux 3.5
- 1.1.1. Download
- 1.1.2. Prepare target
--
cgit 1.4.1-2-gfad0
From 9a72a6e5cc23d29d510625c0c1677fb7ae465032 Mon Sep 17 00:00:00 2001
From: Silvino Silva
Date: Tue, 24 Dec 2019 04:10:14 +0000
Subject: better c debugging and git tags doc
---
dev/c/debugging.html | 27 +++++++++++++++++----------
dev/git/branch.html | 8 +++++++-
2 files changed, 24 insertions(+), 11 deletions(-)
diff --git a/dev/c/debugging.html b/dev/c/debugging.html
index 90dca1b..c26ae7e 100644
--- a/dev/c/debugging.html
+++ b/dev/c/debugging.html
@@ -42,7 +42,7 @@
GDB
- If the program needs arguments you can set it;
+ If the program needs arguments you can set it at start or later;
(gdb)set args -parameter1 -parameter2
@@ -63,16 +63,24 @@
- TUI single key mode.
- Ctrl-L s
- Refresh screen.
- - Up
- - Scroll
- - Down
- - Scroll
- - Left
- - Scroll
- - Right
- - Scroll
+ To attach to a process (pid 5922) and start UI with disassemble;
+
+
+ $ gdb -p 5922
+ (gdb) layout asm
+ (gdb) disassemble
+ (gdb) set disassembly-flavor intel
+
+
+ Break on memory address and inspect area of the memory;
+
+
+ (gdb) b *0x400671
+ (gdb) x/16gx 0x7ffe5217c03d
+
+
(gdb) info win
(gdb) fs next
@@ -85,7 +93,6 @@
info locals
display
print
- x
catch syscall open
diff --git a/dev/git/branch.html b/dev/git/branch.html
index 24acff8..7b31604 100644
--- a/dev/git/branch.html
+++ b/dev/git/branch.html
@@ -201,7 +201,13 @@
Tags are used to mark patch releases, get back in time to make security patches or to mark a new major or minor new release. Tag new release with projectname-version, this allows meaningful ports distfiles when downloading releases from git archives;
- $ git tag -a projectname-1.2.0
+ $ git tag -a projectname-1.2.0 -m "project 1.2.0 release"
+ $ git push origin projectname-1.2.0
+
+
+ To push all local tags;
+
+
$ git push --follow-tags
--
cgit 1.4.1-2-gfad0