-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
110 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,7 @@ | |
|
||
# Dependency directories (remove the comment below to include it) | ||
# vendor/ | ||
|
||
# Docs | ||
_site | ||
.jekyll-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: Chunked | ||
parent: Tips | ||
has_children: false | ||
nav_order: 3 | ||
--- | ||
`-chunked` flag is Specify the maximum length of the file and save it in multiple files. | ||
|
||
``` | ||
▶ wc -l http.txt | ||
2278 | ||
▶ cat http.txt | gee -chunked 500 output | ||
``` | ||
|
||
## References | ||
- https://twitter.com/hahwul/status/1360495565633540097 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: Distribute | ||
parent: Tips | ||
has_children: false | ||
nav_order: 4 | ||
--- | ||
`-distribute` flag is each line sequentially to multiple files. | ||
|
||
``` | ||
▶ wc -l http.txt | ||
2278 | ||
▶ cat http.txt | gee -distribute alice.txt bob.txt charlie.txt | ||
``` | ||
|
||
## References | ||
- https://twitter.com/hahwul/status/1360495570922704897 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: Find and Replace | ||
parent: Tips | ||
has_children: false | ||
nav_order: 2 | ||
--- | ||
|
||
``` | ||
▶ cat raw.txt | gee -find keep-alive | ||
▶ cat raw.txt | gee -find keep-alive -replace close | ||
``` | ||
|
||
## References | ||
- https://twitter.com/hahwul/status/1360495560843689989 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
title: Prefix and Suffix | ||
parent: Tips | ||
has_children: false | ||
nav_order: 1 | ||
--- | ||
|
||
``` | ||
▶ cat urls | gee -prefix "curl -i -k " -suffix " -H 'Auth: abcd'" curls.sh | ||
``` | ||
|
||
``` | ||
curl -i -k https://www.hahwul.com/?q=123 -H 'Auth: abcd' | ||
curl -i -k http://testphp.vulnweb.com/listproducts.php?cat=asdf&ff=1 -H 'Auth: abcd' | ||
curl -i -k https://xss-game.appspot.com/level1/frame -H 'Auth: abcd' | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: Tips | ||
has_children: true | ||
nav_order: 4 | ||
--- | ||
|
||
## Tips |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters