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
| ALTER DATABASE 1OLD_DBName SET SINGLE_USER WITH ROLLBACK IMMEDIATE; | |
| ALTER DATABASE 1OLD_DBName MODIFY NAME = 2NEW_DBNAME; | |
| ALTER DATABASE 2NEW_DBNAME SET MULTI_USER WITH ROLLBACK IMMEDIATE; |
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
| 1. | |
| set http_proxy=http://username:password@:8080 | |
| set https_proxy=http://username:password@ipaddress:8080 | |
| set no_proxy=localhost,.my.company | |
| 2. | |
| git config --global http.proxy http://username@ip:8080 | |
| git config --global credential.helper wincred |
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
| 1. | |
| $Credential = New-Object System.Management.Automation.PSCredential domain\user, password | |
| Start-Process powershell.exe -Credential $Credential -ArgumentList "-file $FILE"1 | |
| 2. | |
| runas.exe /noprofile /env /user:domain\login "powershell.exe" |
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
| EXEC sp_configure 'show advanced options', 1; | |
| GO | |
| RECONFIGURE; | |
| GO | |
| EXEC sp_configure 'xp_cmdshell',1 | |
| GO | |
| RECONFIGURE | |
| GO |
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
| netsh advfirewall firewall add rule name="Nox Block In" dir=in action=block remoteip=220.181.0.0-220.181.255.255,183.128.0.0-183.143.255.255,182.92.0.0-182.92.255.255,101.200.0.0-101.201.255.255,211.151.0.0-211.151.255.255,198.11.128.0-198.11.191.255,124.160.0.0-124.160.255.255,140.205.0.0-140.205.255.255,110.173.192.0-110.173.223.255,121.52.224.0-121.52.255.255,178.162.216.0-178.162.219.255 | |
| netsh advfirewall firewall add rule name="Nox Block Out" dir=out action=block remoteip=220.181.0.0-220.181.255.255,183.128.0.0-183.143.255.255,182.92.0.0-182.92.255.255,101.200.0.0-101.201.255.255,211.151.0.0-211.151.255.255,198.11.128.0-198.11.191.255,124.160.0.0-124.160.255.255,140.205.0.0-140.205.255.255,110.173.192.0-110.173.223.255,121.52.224.0-121.52.255.255,178.162.216.0-178.162.219.255 | |
| 127.0.0.1 api.bignox.com | |
| 127.0.0.1 tracking.trnox.com | |
| 127.0.0.1 bi.yeshen.com | |
| 127.0.0.1 launcher.us.yeshen.com | |
| 127.0.0.1 pubstatus.sinaapp.com | |
| 127.0.0.1 noxagile.duapp.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
| #!/usr/bin/env perl | |
| # | |
| # curlmirror.pl | |
| # | |
| # Mirrors a web site by using curl to download each page. | |
| # The result is stored in a directory named "dest" by default. | |
| # Temporary files are stored in "/tmp". | |
| # | |
| # Author: Kjell.Ericson@haxx.se | |
| # |
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
| '-' + Math.random().toString(36).substr(2,12) + Math.random().toString(36).substr(2, 12) | |
| Date.now() + Math.random().toString().slice(2); | |
| Math.random().toString(36).slice(2); | |
| Math.floor(Math.random() * Math.floor(Math.random() * Date.now())) | |
| '_' + (new Date().getUTCMilliseconds().toString() + new Date().getTime().toString()).toString(); | |
| --- | |
| function myUniqueID(){ | |
| return Math.random().toString(36).slice(2); |
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
| uwfmgr registry add-exclusion "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones" | |
| uwfmgr registry add-exclusion "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" | |
| uwfmgr registry add-exclusion "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\BITS\StateIndex" | |
| uwfmgr registry add-exclusion "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Wireless\GPTWirelessPolicy" | |
| uwfmgr file add-exclusion %ALLUSERSPROFILE%\Microsoft\Network\Downloader | |
| uwfmgr file add-exclusion C:\Windows\wlansvc\Policies | |
| uwfmgr registry add-exclusion "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\wlansvc | |
| uwfmgr file add-exclusion C:\ProgramData\Microsoft\wlansvc\Profiles\Interfaces |
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
| wmic memorychip get speed |
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
| port 443 | |
| proto udp | |
| dev tun | |
| dev-node "VPN Server" | |
| dh "C:\\Program Files\\OpenVPN\\ssl\\dh2048.pem" | |
| ca "C:\\Program Files\\OpenVPN\\ssl\\ca.crt" | |
| cert "C:\\Program Files\\OpenVPN\\ssl\\servername.crt" | |
| key "C:\\Program Files\\OpenVPN\\ssl\\servername.key" | |
| server 172.16.10.0 255.255.255.0 | |
| push "redirect-gateway autolocal" |