This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from urllib import request as urlrequest | |
proxy_host = 'ip:port' | |
url = 'http://www.httpbin.org/ip' | |
#If returns 2 IP means that X-Forwarded isn't disabled | |
req = urlrequest.Request(url) | |
req.set_proxy(proxy_host, 'http') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
acl clients src <IP> | |
http_access allow clients | |
http_port 8080 | |
via off | |
forwarded_for off | |
follow_x_forwarded_for deny all | |
request_header_access X-Forwarded-For deny all | |
header_access X_Forwarded_For deny all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param([String]$FileName='DistributionLists.csv') | |
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 2>$nul | |
$groups=ForEach ($i in Get-DistributionGroup){ | |
Get-DistributionGroupMember $i | Select @{n='DistributionName';e={$i.Name}},@{n='DistributionMail';e={$i.PrimarySmtpAddress}},Name,PrimarySmtpAddress | |
} | |
$groups |Export-CSV $FileName -NoTypeInformation -Encoding UTF8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param([String]$printerTarget='',[String]$printServer='') | |
$conex="\\$printServer\$printerTarget" | |
if ((Get-Printer).Name -eq $conex){ | |
"Printer already installed: $($printerTarget)" | |
}else{ | |
$printClass = [wmiclass]"Win32_Printer" | |
$printClass.AddPrinterConnection($conex) | Out-Null | |
(Get-WmiObject -Class Win32_Printer -Filter "ShareName='$($printerTarget)'").SetDefaultPrinter() | Out-Null | |
"Installed: $($printerTarget)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param([String]$FileName='ADGroups.csv') | |
Import-Module ActiveDirectory 2>$nul | |
$groups=ForEach ($i in Get-ADGroup -Filter 'groupcategory -eq "security"' -searchbase "OU=Domain Users,dc=ORGANITATION,dc=local" | Where-Object { !($_.Name -like "*Domain*")} ){ | |
Get-ADGroupMember $i | Where-Object {($_.objectClass -eq "user")} | Select @{n='DistributionName';e={$i.Name}},Name,SamAccountName | |
} | |
$groups |Export-CSV $FileName -NoTypeInformation -Encoding UTF8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set dnsservers=1.1.1.1 1.0.0.1 9.9.9.9 149.112.112.112 8.8.8.8 8.8.4.4 208.67.222.222 208.67.220.220 91.239.100.100 89.233.43.71 | |
(for %%a in (%dnsservers%) do ( | |
ping -n 1 %%a |findstr "TTL=" | |
)) | |
pause |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for /f "skip=4 usebackq tokens=2" %%a in (`nslookup myip.opendns.com resolver1.opendns.com`) do echo %%a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0.0.0.0 a.stat.xiaomi.com | |
0.0.0.0 abtest.mistat.intl.xiaomi.com | |
0.0.0.0 abtest.mistat.xiaomi.com | |
0.0.0.0 ad.mi.com | |
0.0.0.0 ad.xiaomi.com | |
0.0.0.0 ad1.xiaomi.com | |
0.0.0.0 adv.sec.miui.com | |
0.0.0.0 api.account.xiaomi.com | |
0.0.0.0 api.ad.xiaomi.com | |
0.0.0.0 api.admob.xiaomi.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Quitar Limite El Pais | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description Quitar límite articulos ElPais | |
// @author danielchc | |
// @match https://elpais.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
####################################################################################### | |
# | |
# vCenter Backup - vcsa_backup.sh | |
# Create a Backup of the vCenter Server Appliance | |
# 1.0 - [21/11/2023] danielchc | |
# | |
####################################################################################### | |
function echo_log () { |
OlderNewer