Compare commits

...

7 Commits

Author SHA1 Message Date
Michał Ży
945e21b6a4
Merge pull request #353 from caverav/master
added shell cleaning trick
2022-02-28 21:34:27 +01:00
Michał Ży
db823f6b70
Update README.md 2022-02-28 21:33:52 +01:00
Camilo
1ea2c2f84a added shell cleaning trick 2022-02-28 14:21:58 -03:00
Michał Ży
12da91205a
Merge pull request #294 from pratik-devkota/master
Update README.md
2022-02-23 20:05:45 +01:00
Michał Ży
e22f036a61
Merge pull request #286 from jcamiel/master
Add Hurl to CLI tools
2022-02-23 20:04:53 +01:00
pratik-devkota
4b064d005f
Update README.md
Change privacytools.io to privacyguides.org.
The team has been renamed as such which's described along with the
reasons in their blog (url:
https://privacyguides.org/blog/2021/09/14/welcome-to-privacy-guides/).
2021-12-11 08:01:04 +05:45
jcamiel
c6e89e29c3 Add Hurl to CLI tools
- signed-off-by: jcamiel <jeanchristophe.amiel@gmail.com>
2021-11-28 19:16:27 +01:00

View File

@ -114,8 +114,9 @@ Only main chapters:
- **[Hacking/Penetration Testing](#hackingpenetration-testing-toc)**
- **[Your daily knowledge and news](#your-daily-knowledge-and-news-toc)**
- **[Other Cheat Sheets](#other-cheat-sheets-toc)**
- **[One-liners](#one-liners-toc)**
- **[Shell functions](#shell-functions-toc)**
- **[Shell One-liners](#shell-one-liners-toc)**
- **[Shell Tricks](#shell-tricks-toc)**
- **[Shell Functions](#shell-functions-toc)**
## :trident: &nbsp;The Book of Secret Knowledge (Chapters)
@ -262,6 +263,7 @@ Only main chapters:
&nbsp;&nbsp;:small_orange_diamond: <a href="https://github.com/OJ/gobuster"><b>gobuster</b></a> - is a free and open source directory/file & DNS busting tool written in Go.<br>
&nbsp;&nbsp;:small_orange_diamond: <a href="https://github.com/ssllabs/ssllabs-scan"><b>ssllabs-scan</b></a> - command-line reference-implementation client for SSL Labs APIs.<br>
&nbsp;&nbsp;:small_orange_diamond: <a href="https://github.com/mozilla/http-observatory"><b>http-observatory</b></a> - Mozilla HTTP Observatory cli version.<br>
&nbsp;&nbsp;:small_orange_diamond: <a href="https://hurl.dev"><b>Hurl</b></a> - is a command line tool to run and test HTTP requests with plain text.<br>
</p>
##### :black_small_square: SSL
@ -570,7 +572,7 @@ Only main chapters:
##### :black_small_square: Privacy
<p>
&nbsp;&nbsp;:small_orange_diamond: <a href="https://www.privacytools.io/"><b>privacytools.io</b></a> - provides knowledge and tools to protect your privacy against global mass surveillance.<br>
&nbsp;&nbsp;:small_orange_diamond: <a href="https://www.privacyguides.org/"><b>privacyguides.org</b></a> - provides knowledge and tools to protect your privacy against global mass surveillance.<br>
&nbsp;&nbsp;:small_orange_diamond: <a href="https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Test+Servers"><b>DNS Privacy Test Servers</b></a> - DNS privacy recursive servers list (with a 'no logging' policy).<br>
</p>
@ -1668,7 +1670,7 @@ _Encoding_
text :arrow_right: encoded<br>
text :arrow_left: encoded
#### One-liners &nbsp;[<sup>[TOC]</sup>](#anger-table-of-contents)
#### Shell One-liners &nbsp;[<sup>[TOC]</sup>](#anger-table-of-contents)
##### Table of Contents
@ -2326,6 +2328,7 @@ ___
```bash
vimdiff file1 file2
```
###### Compare two JSON files
```bash
@ -2333,8 +2336,9 @@ vimdiff <(jq -S . A.json) <(jq -S . B.json)
```
###### Compare Hex dump
```bash
d(){ vimdiff <(f $1) <(f $2);};f(){ hexdump -C $1|cut -d' ' -f3-|tr -s ' ';}; d ~/bin1 ~/bin2
d(){ vimdiff <(f $1) <(f $2);};f(){ hexdump -C $1 | cut -d' ' -f3- | tr -s ' ';}; d ~/bin1 ~/bin2
```
###### diffchar
@ -4351,6 +4355,17 @@ perl -p -i -e 's/\t/ /g' filename
perl -lne '$i++; $in += length($_); END { print "$i lines, $in characters"; }' filename
```
#### Shell Tricks &nbsp;[<sup>[TOC]</sup>](#anger-table-of-contents)
When you get a shell, it is generally not very clean, but after following these steps, you will have a fairly clean and comfortable shell to work with.
1) `script /dev/null -c bash`
2) Ctrl-Z (to send it to background)
3) `stty raw -echo; fg` (returns the shell to foreground)
4) `reset` (to reset terminal)
5) `xterm` (when asked for terminal type)
6) `export TERM=xterm; export SHELL=bash`
#### Shell functions &nbsp;[<sup>[TOC]</sup>](#anger-table-of-contents)
##### Table of Contents