SecOps

“pkg_resources.DistributionNotFound: The ‘platformdirs=2’ distribution was not found and is required by virtualenv” Error in Python

While creating a virtual environment, basically $ virtualenv venv comment may not work because of the python version installed on the machine. It can cause the error below; The best way is to run the … Continue reading “pkg_resources.DistributionNotFound: The ‘platformdirs=2’ distribution was not found and is required by virtualenv” Error in Python

wget with Powershell

 function global:wget($Address, [switch]$NoCache){ $client = New-Object Net.WebClient $proxy = New-object System.Net.WebProxy “10.0.0.10:8080” $proxy.Credentials = New-Object System.Net.NetworkCredential (“DOMAIN\user”, “password”) $client.proxy=$proxy$Client.Headers.Add(“user-agent”, “Windows Powershell WebClient Header”) if ($NoCache) {# doesn’t use the cache at all$client.CachePolicy = New-Object Net.Cache.RequestCachePolicy([Net.Cache.RequestCacheLevel]::NoCacheNoStore)}$client.DownloadString($Address)}wget -Address “http://www.be4sec.com” -NoCache

An Information Security Blog

%d bloggers like this: