mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-04 04:55:22 +00:00
Update cheatsheets
This commit is contained in:
@@ -21,6 +21,10 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
`masscan {{10.0.0.0/16}} --top-ports {{100}} --excludefile {{path/to/file}}`
|
`masscan {{10.0.0.0/16}} --top-ports {{100}} --excludefile {{path/to/file}}`
|
||||||
|
|
||||||
|
- Scan a class B subnet with Nmap-like version detection (banner grabbing):
|
||||||
|
|
||||||
|
`masscan {{10.0.0.0/16}} {{[-p|--ports]}} {{22,80}} --banners --rate {{100000}}`
|
||||||
|
|
||||||
- Scan the Internet for web servers running on port 80 and 443:
|
- Scan the Internet for web servers running on port 80 and 443:
|
||||||
|
|
||||||
`masscan {{0.0.0.0/0}} {{[-p|--ports]}} {{80,443}} --rate {{10000000}}`
|
`masscan {{0.0.0.0/0}} {{[-p|--ports]}} {{80,443}} --rate {{10000000}}`
|
||||||
|
|||||||
26
tldr/windows/py
Normal file
26
tldr/windows/py
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, windows]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# py
|
||||||
|
|
||||||
|
> Python Launcher for Windows that runs with specified Python version.
|
||||||
|
> See also: `python`.
|
||||||
|
> More information: <https://docs.python.org/3/using/windows.html#python-launcher-for-windows>.
|
||||||
|
|
||||||
|
- Start a REPL (interactive shell), optionally with arguments supported by `python` (like `-c`, `-m`, etc.):
|
||||||
|
|
||||||
|
`py {{python_arguments}}`
|
||||||
|
|
||||||
|
- Execute a specific Python file:
|
||||||
|
|
||||||
|
`py {{path/to/file.py}}`
|
||||||
|
|
||||||
|
- Run specific Python version. If the version is missing, and `PYLAUNCHER_ALLOW_INSTALL` environment variable is set, auto-install via Microsoft Store or Winget:
|
||||||
|
|
||||||
|
`py {{-2|-3.7|...}}`
|
||||||
|
|
||||||
|
- List installed Python versions:
|
||||||
|
|
||||||
|
`py --list`
|
||||||
Reference in New Issue
Block a user