mirror of
https://github.com/carlospolop/hacktricks
synced 2024-11-21 20:23:18 +00:00
GitBook: [master] 3 pages modified
This commit is contained in:
parent
be33c50490
commit
71dc2c2301
3 changed files with 24 additions and 0 deletions
|
@ -387,6 +387,7 @@
|
|||
## MISC
|
||||
|
||||
* [Basic Python](misc/basic-python/README.md)
|
||||
* [venv](misc/basic-python/venv.md)
|
||||
* [Bypass Python sandboxes](misc/basic-python/bypass-python-sandboxes.md)
|
||||
* [Magic Methods](misc/basic-python/magic-methods.md)
|
||||
* [Web Requests](misc/basic-python/web-requests.md)
|
||||
|
|
21
misc/basic-python/venv.md
Normal file
21
misc/basic-python/venv.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# venv
|
||||
|
||||
```bash
|
||||
sudo apt-get install python3-venv
|
||||
#Now, go to the folder you want to create the virtual environment
|
||||
python3 -m venv <Dirname>
|
||||
python3 -m venv pvenv #In this case the folder "pvenv" is going to be crated
|
||||
source <Dirname>/bin/activate
|
||||
source pvenv/bin/activate #Activate the environment
|
||||
#You can now install whatever python library you need
|
||||
deactivate #To deactivate the virtual environment
|
||||
```
|
||||
|
||||
```bash
|
||||
The error
|
||||
error: invalid command 'bdist_wheel'
|
||||
is fixed running
|
||||
pip3 install wheel
|
||||
inside the virtual environment
|
||||
```
|
||||
|
|
@ -47,6 +47,8 @@ wmic logicaldisk get caption,description,providername
|
|||
```bash
|
||||
WMIC /Node:localhost /Namespace:\\root\SecurityCenter2 Path AntiVirusProduct Get displayName /Format:List
|
||||
sc query windefend
|
||||
#Delete all rules of Defender (useful for machines without internet access)
|
||||
"C:\Program Files\Windows Defender\MpCmdRun.exe" -RemoveDefinitions -All
|
||||
```
|
||||
|
||||
### Recycle Bin
|
||||
|
|
Loading…
Reference in a new issue