diff --git a/SUMMARY.md b/SUMMARY.md index 797fd6116..bbb91d7ed 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -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) diff --git a/misc/basic-python/venv.md b/misc/basic-python/venv.md new file mode 100644 index 000000000..e417fc808 --- /dev/null +++ b/misc/basic-python/venv.md @@ -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 +python3 -m venv pvenv #In this case the folder "pvenv" is going to be crated +source /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 +``` + diff --git a/windows/basic-cmd-for-pentesters.md b/windows/basic-cmd-for-pentesters.md index c03dc0928..6861ad163 100644 --- a/windows/basic-cmd-for-pentesters.md +++ b/windows/basic-cmd-for-pentesters.md @@ -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