Curl: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „*https://www.ostechnix.com/a-list-of-useful-console-services-for-linux-users/?fbclid=IwAR3m94pZ5MAApsozvsYRP8utXROhb0tdFpLWqJuzLjdlUO8XlWxqAHOYkCQ“) |
|||
| (10 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
| − | *https://www.ostechnix.com/a-list-of-useful-console-services-for-linux-users/?fbclid=IwAR3m94pZ5MAApsozvsYRP8utXROhb0tdFpLWqJuzLjdlUO8XlWxqAHOYkCQ | + | |
| + | '''C'''url '''U'''RL '''R'''equest '''L'''ibrary | ||
| + | |||
| + | = Installation = | ||
| + | |||
| + | * Debian-basierte Systeme | ||
| + | * '''apt install curl''' | ||
| + | * Arch-basierte Systeme | ||
| + | * '''pacman -S curl''' | ||
| + | |||
| + | = nützliche Webseiten = | ||
| + | |||
| + | == öffentliche IP-Adresse herausfinden == | ||
| + | |||
| + | * '''curl -6 ifconfig.co''' | ||
| + | |||
| + | *xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx* | ||
| + | * '''curl -4 ipinfo.io''' | ||
| + | |||
| + | { | ||
| + | "ip": "''xxx.xxx.xxx.xxx.xxx''", | ||
| + | "city": "Frankfurt am Main", | ||
| + | "region": "Hesse", | ||
| + | "country": "DE", | ||
| + | "loc": "''Breitengrad, Längengrad''", | ||
| + | "org": "''Organisation''", | ||
| + | "postal": "60306", | ||
| + | "timezone": "Europe/Berlin", | ||
| + | "readme": "https://ipinfo.io/missingauth" | ||
| + | } | ||
| + | |||
| + | == Cheat Sheet für Kommandozeilenbefehle == | ||
| + | |||
| + | * '''curl cheat.sh/find''' | ||
| + | |||
| + | find . -iname '*.jpg' | ||
| + | |||
| + | # Find directories. | ||
| + | find . -type d | ||
| + | |||
| + | # Find files. Specifically files; not directories, links, FIFOs, etc. | ||
| + | find . -type f | ||
| + | |||
| + | # Find files set to the provided octal mode (permissions). | ||
| + | find . -type f -perm 777 | ||
| + | ... | ||
| + | * '''curl cheat.sh/nmap''' | ||
| + | |||
| + | # Single target scan: | ||
| + | nmap [target] | ||
| + | |||
| + | # Scan from a list of targets: | ||
| + | nmap -iL [list.txt] | ||
| + | |||
| + | # Scan port for all available A records | ||
| + | # (useful when multiple A records are returned by the DNS server) | ||
| + | nmap --script resolveall --script-args newtargets,resolveall.hosts=[target] -p [port] | ||
| + | |||
| + | # iPv6: | ||
| + | nmap -6 [target] | ||
| + | |||
| + | # OS detection: | ||
| + | nmap -O --osscan_guess [target] | ||
| + | |||
| + | # Save output to text file: | ||
| + | nmap -oN [output.txt] [target] | ||
| + | ... | ||
| + | * '''curl cheat.sh/tcpdump''' | ||
| + | |||
| + | # Intercepts all packets on eth0 | ||
| + | tcpdump -i eth0 | ||
| + | |||
| + | # Intercepts all packets from/to 173.194.40.120 | ||
| + | tcpdump host 173.194.40.120 | ||
| + | |||
| + | # Intercepts all packets on all interfaces from / to 173.194.40.120 port 80 | ||
| + | # -nn => Disables name resolution for IP addresses and port numbers. | ||
| + | tcpdump -nn -i any host 173.194.40.120 and port 80 | ||
| + | |||
| + | == Das Wetter == | ||
| + | |||
| + | * '''curl wttr.in/Zweibrücken''' | ||
| + | |||
| + | Weather report: Zweibrücken | ||
| + | |||
| + | \ / Sunny | ||
| + | .-. +2(-2) °C | ||
| + | ― ( ) ― ↓ 4 km/h | ||
| + | `-’ 10 km | ||
| + | / \ 0.0 mm | ||
| + | ┌─────────────┐ | ||
| + | ┌──────────────────────────────┬───────────────────────┤ Fri 03 Mar ├───────────────────────┬──────────────────────────────┐ | ||
| + | │ Morning │ Noon └──────┬──────┘ Evening │ Night │ | ||
| + | ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ | ||
| + | │ \ / Sunny │ \ / Sunny │ \ / Sunny │ \ / Clear │ | ||
| + | │ .-. +1(-2) °C │ .-. +7(5) °C │ .-. +6(5) °C │ .-. +2(0) °C │ | ||
| + | │ ― ( ) ― ↙ 9-15 km/h │ ― ( ) ― ↙ 13-14 km/h │ ― ( ) ― ↙ 9-13 km/h │ ― ( ) ― ↓ 7-15 km/h │ | ||
| + | │ `-’ 10 km │ `-’ 10 km │ `-’ 10 km │ `-’ 10 km │ | ||
| + | │ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │ | ||
| + | └──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘ | ||
| + | ┌─────────────┐ | ||
| + | ┌──────────────────────────────┬───────────────────────┤ Sat 04 Mar ├───────────────────────┬──────────────────────────────┐ | ||
| + | │ Morning │ Noon └──────┬──────┘ Evening │ Night │ | ||
| + | ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ | ||
| + | │ \ / Sunny │ \ / Sunny │ \ / Partly cloudy │ Cloudy │ | ||
| + | │ .-. +2(0) °C │ .-. +6(4) °C │ _ /"".-. +4(1) °C │ .--. +3(0) °C │ | ||
| + | │ ― ( ) ― ↓ 5-8 km/h │ ― ( ) ― ↓ 12-15 km/h │ \_( ). ↓ 11-17 km/h │ .-( ). ↓ 9-15 km/h │ | ||
| + | │ `-’ 10 km │ `-’ 10 km │ /(___(__) 10 km │ (___.__)__) 10 km │ | ||
| + | │ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │ 0.0 mm | 0% │ 0.0 mm | 0% │ | ||
| + | └──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘ | ||
| + | ┌─────────────┐ | ||
| + | ┌──────────────────────────────┬───────────────────────┤ Sun 05 Mar ├───────────────────────┬──────────────────────────────┐ | ||
| + | │ Morning │ Noon └──────┬──────┘ Evening │ Night │ | ||
| + | ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ | ||
| + | │ Overcast │ Overcast │ Overcast │ Cloudy │ | ||
| + | │ .--. +2(0) °C │ .--. +3(2) °C │ .--. +4(1) °C │ .--. +1(0) °C │ | ||
| + | │ .-( ). ↓ 5-8 km/h │ .-( ). ↘ 5-7 km/h │ .-( ). → 8-12 km/h │ .-( ). → 4-7 km/h │ | ||
| + | │ (___.__)__) 10 km │ (___.__)__) 10 km │ (___.__)__) 10 km │ (___.__)__) 10 km │ | ||
| + | │ 0.0 mm | 0% │ 0.0 mm | 0% │ 0.0 mm | 0% │ 0.0 mm | 0% │ | ||
| + | └──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘ | ||
| + | Location: Zweibrücken, Rheinland-Pfalz, 66482, Deutschland [49.248655,7.3641981] | ||
| + | |||
| + | Follow @igor_chubin for wttr.in updates | ||
| + | |||
| + | == Dad Jokes == | ||
| + | |||
| + | * '''curl -L icanhazdadjoke.com''' | ||
| + | |||
| + | Did you hear about the cheese who saved the world? It was Legend-dairy! | ||
| + | |||
| + | == animierter Papagei == | ||
| + | |||
| + | * '''curl parrot.live''' | ||
| + | |||
| + | |||
| + | .ckx;'........':c. | ||
| + | .,:c:::::oxxocoo::::,',. | ||
| + | .odc'..:lkkoolllllo;..;d, | ||
| + | ;c..:o:..;:..',;'.......;. | ||
| + | ,c..:0Xx::o:.,cllc:,'::,.,c. | ||
| + | ;c;lkXKXXXXl.;lllll;lKXOo;':c. | ||
| + | ,dc.oXXXXXXXXl.,lllll;lXXXXx,c0: | ||
| + | ;Oc.oXXXXXXXXo.':ll:;'oXXXXO;,l' | ||
| + | 'l;;kXXXXXXXXd'.'::'..dXXXXO;,l' | ||
| + | 'l;:0XXXXXXXX0x:...,:o0XXXXx,:x, | ||
| + | 'l;;kXXXXXXXXXKkol;oXXXXXXXO;oNc | ||
| + | ,c'..ckk0XXXXXXXXXX00XXXXXXX0:;o:. | ||
| + | .':;..:do::ooookXXXXXXXXXXXXXXXo..c; | ||
| + | .',',:co0XX0kkkxxOXXXXXXXXXXXXXXXOc..;l. | ||
| + | .:;'..oXXXXXXXXXXXXXXXXXXXXXXXXXXXXXko;';:. | ||
| + | .ldc..:oOXKXXXXXXKXXKXXXXXXXXXXXXXXXXXXXo..oc | ||
| + | :0o...:dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxo,.:, | ||
| + | cNo........................................;' | ||
| + | |||
| + | = Links = | ||
| + | |||
| + | * https://www.ostechnix.com/a-list-of-useful-console-services-for-linux-users/?fbclid=IwAR3m94pZ5MAApsozvsYRP8utXROhb0tdFpLWqJuzLjdlUO8XlWxqAHOYkCQ | ||
Aktuelle Version vom 19. Juni 2024, 05:57 Uhr
Curl URL Request Library
Installation
- Debian-basierte Systeme
- apt install curl
- Arch-basierte Systeme
- pacman -S curl
nützliche Webseiten
öffentliche IP-Adresse herausfinden
- curl -6 ifconfig.co
*xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx*
- curl -4 ipinfo.io
{
"ip": "xxx.xxx.xxx.xxx.xxx",
"city": "Frankfurt am Main",
"region": "Hesse",
"country": "DE",
"loc": "Breitengrad, Längengrad",
"org": "Organisation",
"postal": "60306",
"timezone": "Europe/Berlin",
"readme": "https://ipinfo.io/missingauth"
}
Cheat Sheet für Kommandozeilenbefehle
- curl cheat.sh/find
find . -iname '*.jpg' # Find directories. find . -type d # Find files. Specifically files; not directories, links, FIFOs, etc. find . -type f # Find files set to the provided octal mode (permissions). find . -type f -perm 777 ...
- curl cheat.sh/nmap
# Single target scan: nmap [target] # Scan from a list of targets: nmap -iL [list.txt] # Scan port for all available A records # (useful when multiple A records are returned by the DNS server) nmap --script resolveall --script-args newtargets,resolveall.hosts=[target] -p [port] # iPv6: nmap -6 [target] # OS detection: nmap -O --osscan_guess [target] # Save output to text file: nmap -oN [output.txt] [target] ...
- curl cheat.sh/tcpdump
# Intercepts all packets on eth0 tcpdump -i eth0 # Intercepts all packets from/to 173.194.40.120 tcpdump host 173.194.40.120 # Intercepts all packets on all interfaces from / to 173.194.40.120 port 80 # -nn => Disables name resolution for IP addresses and port numbers. tcpdump -nn -i any host 173.194.40.120 and port 80
Das Wetter
- curl wttr.in/Zweibrücken
Weather report: Zweibrücken
\ / Sunny
.-. +2(-2) °C
― ( ) ― ↓ 4 km/h
`-’ 10 km
/ \ 0.0 mm
┌─────────────┐
┌──────────────────────────────┬───────────────────────┤ Fri 03 Mar ├───────────────────────┬──────────────────────────────┐
│ Morning │ Noon └──────┬──────┘ Evening │ Night │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤
│ \ / Sunny │ \ / Sunny │ \ / Sunny │ \ / Clear │
│ .-. +1(-2) °C │ .-. +7(5) °C │ .-. +6(5) °C │ .-. +2(0) °C │
│ ― ( ) ― ↙ 9-15 km/h │ ― ( ) ― ↙ 13-14 km/h │ ― ( ) ― ↙ 9-13 km/h │ ― ( ) ― ↓ 7-15 km/h │
│ `-’ 10 km │ `-’ 10 km │ `-’ 10 km │ `-’ 10 km │
│ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘
┌─────────────┐
┌──────────────────────────────┬───────────────────────┤ Sat 04 Mar ├───────────────────────┬──────────────────────────────┐
│ Morning │ Noon └──────┬──────┘ Evening │ Night │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤
│ \ / Sunny │ \ / Sunny │ \ / Partly cloudy │ Cloudy │
│ .-. +2(0) °C │ .-. +6(4) °C │ _ /"".-. +4(1) °C │ .--. +3(0) °C │
│ ― ( ) ― ↓ 5-8 km/h │ ― ( ) ― ↓ 12-15 km/h │ \_( ). ↓ 11-17 km/h │ .-( ). ↓ 9-15 km/h │
│ `-’ 10 km │ `-’ 10 km │ /(___(__) 10 km │ (___.__)__) 10 km │
│ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │ 0.0 mm | 0% │ 0.0 mm | 0% │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘
┌─────────────┐
┌──────────────────────────────┬───────────────────────┤ Sun 05 Mar ├───────────────────────┬──────────────────────────────┐
│ Morning │ Noon └──────┬──────┘ Evening │ Night │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤
│ Overcast │ Overcast │ Overcast │ Cloudy │
│ .--. +2(0) °C │ .--. +3(2) °C │ .--. +4(1) °C │ .--. +1(0) °C │
│ .-( ). ↓ 5-8 km/h │ .-( ). ↘ 5-7 km/h │ .-( ). → 8-12 km/h │ .-( ). → 4-7 km/h │
│ (___.__)__) 10 km │ (___.__)__) 10 km │ (___.__)__) 10 km │ (___.__)__) 10 km │
│ 0.0 mm | 0% │ 0.0 mm | 0% │ 0.0 mm | 0% │ 0.0 mm | 0% │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘
Location: Zweibrücken, Rheinland-Pfalz, 66482, Deutschland [49.248655,7.3641981]
Follow @igor_chubin for wttr.in updates
Dad Jokes
- curl -L icanhazdadjoke.com
Did you hear about the cheese who saved the world? It was Legend-dairy!
animierter Papagei
- curl parrot.live
.ckx;'........':c.
.,:c:::::oxxocoo::::,',.
.odc'..:lkkoolllllo;..;d,
;c..:o:..;:..',;'.......;.
,c..:0Xx::o:.,cllc:,'::,.,c.
;c;lkXKXXXXl.;lllll;lKXOo;':c.
,dc.oXXXXXXXXl.,lllll;lXXXXx,c0:
;Oc.oXXXXXXXXo.':ll:;'oXXXXO;,l'
'l;;kXXXXXXXXd'.'::'..dXXXXO;,l'
'l;:0XXXXXXXX0x:...,:o0XXXXx,:x,
'l;;kXXXXXXXXXKkol;oXXXXXXXO;oNc
,c'..ckk0XXXXXXXXXX00XXXXXXX0:;o:.
.':;..:do::ooookXXXXXXXXXXXXXXXo..c;
.',',:co0XX0kkkxxOXXXXXXXXXXXXXXXOc..;l.
.:;'..oXXXXXXXXXXXXXXXXXXXXXXXXXXXXXko;';:.
.ldc..:oOXKXXXXXXKXXKXXXXXXXXXXXXXXXXXXXo..oc
:0o...:dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxo,.:,
cNo........................................;'