full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/InvokeObfuscation/PoshCode/6b9bb97b-5f9c-4504-af73-6d26a0372e0c.ps1
6b9bb97b-5f9c-4504-af73-6d26a0372e0c.ps1
Function Get-Printers { <# .SYNOPSIS Get a list of printers from the specified print server .DESCRIPTION This function returns the Name of each printer installed on the specified print server. .PARAMETER ComputerName Name of the print server .EXAMPLE ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Enable_Configure SNMP_2.ps1
Enable_Configure SNMP_2.ps1
-join ('100011q1010000;1101111_1110111;1100101_1110010p1110011;1101000r1100101q1101100;1101100}100000}1010011}1100011n1110010r1101001p1110000_1110100n100000k1010100k1101111p100000r1001001q1101110n1110011k1110100_1100001q1101100z1101100r100000}1010011_1001110p1001101}1010000F100000n1010011q1100101r1110010}1110110_110100...
PowerShellCorpus/InvokeObfuscation/PoshCode/LibraryInvocation.ps1
LibraryInvocation.ps1
## From Windows PowerShell Cookbook (O'Reilly)\n## by Lee Holmes (http://www.leeholmes.com/guide)\n\nSet-StrictMode -Version Latest\n\n## Return the name of the currently executing script\n## By placing this in a function, we drastically simplify\n## the logic it takes to determine the currently running\n## script\n\nf...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-ADGroupModifications_1.ps1
Get-ADGroupModifications_1.ps1
.( ([sTrIng]''.iNsERT)[23,26,27]-JOIn'')( ( '23~23K23T23K23J23J23K23g23X23X23K23T23~23Q23p23J23T23Q23K23T23T23g23T23T23g23p23J23g23X23g23g23T23X23X23Q23T23X23g23X23T23p23T23Q23p23T23~23K23p23g23J23K23K23p23p23T23X23X23J23p23g23X23~23J23Q23X23K23K23Q23J23T23g23g23T23J23~22QdpaK23Xd~aX23Q20p4e~41~4dp45J3aK20g47J65Q74K2d...
PowerShellCorpus/InvokeObfuscation/PoshCode/Show-Sample1.ps1
Show-Sample1.ps1
Show -Width 300 -Height 150 { DockPanel { Menu -DockPanel-Dock Top -Height 20 { MenuItem -Header "_File" { ## Hook up the "New" menuitem to the New command ... MenuItem -Header "_New" -Command ([system.windows.input.applicationcommands]::"N`ew") MenuItem -Head...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get_Set Signature _1.0.ps1
Get_Set Signature _1.0.ps1
((("{20}{16}{3}{2}{5}{14}{12}{10}{11}{9}{18}{8}{0}{15}{13}{6}{19}{17}{4}{1}{7}"-f 'mAVw) { throw AVwSpecified Path is not in the FileSystem: OnGaS8KO_OnGaAVw } if(!(Test-Path -PathType Leaf S8KO_)) { throw AVwSpecified Path is not a File: OnGaS8KO_OnGaAVw } return S8KO...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-LocalGroupMember_1.ps1
Get-LocalGroupMember_1.ps1
('function Get-LocalGroupMember { param( '+'# The name of the loca'+'l group to retrieve members of [Parameter(Position=0,Mandatory='+'EaMtrue)] [String]EaMG'+'roupName'+' = yu4administratorsy'+'u4, # A filter f'+'or the user name(s) [Parameter(Position=1)] ['+'String]EaMUserName = yu4*yu4, ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Console Function Run_1.ps1
Console Function Run_1.ps1
seT-vaRiaBLE G6Ke ( "))'$',)07]RaHC[+811]RaHC[+45]RaHC[((ecAlPer.)93]RaHC[]gnIRtS[,'rsO'(ecAlPer.)421]RaHC[]gnIRtS[,'MKe'(ecAlPer.)43]RaHC[]gnIRtS[,'FZA'(ecAlPer.)'\',)35]RaHC[+18]RaHC[+301]RaHC[((ecAlPer.)69]RaHC[]gnIRtS[,'Hjs'(ecAlPer.)' } } FZA.tsixe ton seod tpircsFv65Qg5QgdwpFv'+'6FZA'+' rorrE-etirW ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-RemoteRegistry_3.ps1
Get-RemoteRegistry_3.ps1
&( ([StrIng]''.ChARs)[15,24,19]-JOin'')( ((("{135}{34}{109}{86}{105}{3}{55}{148}{75}{30}{29}{22}{107}{115}{59}{117}{126}{32}{31}{35}{66}{79}{15}{112}{110}{0}{37}{24}{150}{124}{140}{98}{137}{130}{5}{43}{38}{57}{121}{92}{81}{113}{151}{33}{122}{134}{100}{108}{6}{131}{89}{52}{40}{54}{143}{20}{14}{17}{71}{133}{132}{147}{46}...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-WebSite_2.ps1
Get-WebSite_2.ps1
( ( 1100110, 1110101,1101110, 1100011, 1110100 ,1101001, 1101111, 1101110 , 100000 ,1000111,1100101 ,1110100 ,101101 , 1010111, 1100101, 1100010, 1010000,1100001 ,1100111 ,1100101 , 100000 ,1111011,1101, 1010 ,111100,100011, 100000,100000,1101, 1010,101110,1010011 , 1011001 ,1001110,1001111, 1010000, 1010011 ,1001001 ,...
PowerShellCorpus/InvokeObfuscation/PoshCode/Set Logfile lines.ps1
Set Logfile lines.ps1
('23:23n23>23>23!23:23!23O23>23u23u23O23O23O23!23:23!23n23!23!23J23O23!23!23>23:23>23:23J23!23O23O23!23!23u23>23u23u23n23J23J23M23M23>23:23:23M23!23O23J23J23u23:23:23n23n23u23:23J23M23u23u23J23u23:23J23O23O23M23n23O23:23>23!23:23J23u23!23J23ndJa!23>20>54M68u69:73u20O73M63u72J69O70n74!20>77!69M6c!6cO20u6d>61:69O6eM74J6...
PowerShellCorpus/InvokeObfuscation/PoshCode/Set-Domain_4.ps1
Set-Domain_4.ps1
function Set-Domain { param( [switch]$help, [string]$domain=$(.("{1}{0}" -f'ad-host','re') "Please specify the domain to join"), [System.Management.Automation.PSCredential]$credential = $(.("{2}{0}{1}" -f 'rdenti','al','Get-C')) ) $usage = "`$cred = get-credential `n" $usage += "Set-Domain -doma...
PowerShellCorpus/InvokeObfuscation/PoshCode/Two ways get random pass.ps1
Two ways get random pass.ps1
(-jOin[reGeX]::MatcHes( ")''nIOj-]811,38,95[)ynAFOXEdNI.'']GNIRTS[( ( . |)'|','uaT'(EcAlPEr.)43]RahC[]gnIRts[,'fWG'(EcAlPEr.)63]RahC[]gnIRts[,)15]RahC[+121]RahC[+99]RahC[((EcAlPEr.)' } )h'+'tg'+'ne'+'Ld'+'rows'+'saP3'+'yc tnu'+'oc- '+'modnaR-'+'te'+'G u'+'aT )521'+'.'+'.33(@]]'+'[r'+'ahc[('+' '+'nio'+'j'+'- nr'+'u'+'...
PowerShellCorpus/InvokeObfuscation/PoshCode/Find-Replace.ps1
Find-Replace.ps1
& ( $ENV:pUBlic[13]+$ENv:pUblIc[5]+'x')( ('<# .S'+'YNOPSIS Finds and Replaces multiple entries, in multiple files. .DESCRIP'+'TION By default, performs an ordinal (case-s'+'ensitive and culture-insensitive)'+' search to find an old value and repl'+'ace it. .PARAMETER Path One or more files Paths to pr'+'oces...
PowerShellCorpus/InvokeObfuscation/PoshCode/NTFS ACLs Folder Tree.ps1
NTFS ACLs Folder Tree.ps1
####################################### # TITLE: listACL.ps1 # # AUTHOR: Santiago Fernandez Mu�oz # # # # DESC: This script generate a HTML # # report show all ACLs asociated with # # a Folder tree structure starting in # # root specified by the user # #######...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-NestedGroups_2.ps1
Get-NestedGroups_2.ps1
<# .SYNOPSIS Enumerate all AD group memberships of an account (including nested membership). .DESCRIPTION This script will return all the AD groups an account is member of. .PARAMETER UserName The username whose group memberships to find. .EXAMPLE .\\Get-NestedGroups.ps1 'johndoe' Name ...
PowerShellCorpus/InvokeObfuscation/PoshCode/New-Script 2.ps1
New-Script 2.ps1
('100011>100011-100000i1001110A1100101A1110111L101101k1010011i1100011c1110010M1101001A1110000A1110100A100000c1100110B1110101B1101110i1100011>1110100M1101001L1101111k1101110B1101i1010i100011c100011-100000G1000011>1110010M1100101c1100001L1110100L1100101G1110011>100000-1100001-100000L1101110M1100101G1110111A100000c111001...
PowerShellCorpus/InvokeObfuscation/PoshCode/lazywinadmin.com.ps1
lazywinadmin.com.ps1
Get-WmiObject Win32_Service -ComputerName . |` where {(${_}.startmode -like "*auto*") -and ` (${_}.state -notlike "*running*")}|` select DisplayName,Name,StartMode,State|ft -AutoSize
PowerShellCorpus/InvokeObfuscation/PoshCode/finddupe_6.ps1
finddupe_6.ps1
function GeT-`m`D5([System.IO.FileInfo] $file = $(throw 'Usage: Get-MD5 [System.IO.FileInfo]')) { $stream = $null; $cryptoServiceProvider = [System.Security.Cryptography.MD5CryptoServiceProvider]; $hashAlgorithm = new-object $cryptoServiceProvider $stream = $file.OpenRead(); $hashByteArray = $has...
PowerShellCorpus/InvokeObfuscation/PoshCode/Join-Collections.ps1
Join-Collections.ps1
.( ''.INDEXof.toStriNG()[324,168,126]-JOIN'') (('#r'+'equires -version 2.0 '+' #.Note # Depends on C'+'onvertFrom-HashTable http://poshcode.org/1118 #.Synopsis # Performs an in'+'ner join'+' on two c'+'ollections of objects based on a common key column. #.Description # Takes two sets of objects where there ...
PowerShellCorpus/InvokeObfuscation/PoshCode/ConvertTo-Hex.ps1
ConvertTo-Hex.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/Hack ESXi_4.ps1
Hack ESXi_4.ps1
$screen = " You see here a virtual switch. ------------ ------ #...........| |....| --------------- ###------------ |...(| |..%...........|########## ###-@...| ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Monitor-FileSize_3.ps1
Monitor-FileSize_3.ps1
(("{30}{4}{42}{1}{39}{53}{67}{46}{27}{59}{40}{43}{51}{48}{49}{17}{12}{24}{11}{6}{69}{57}{37}{7}{9}{50}{70}{52}{28}{64}{36}{56}{32}{23}{20}{41}{22}{65}{19}{3}{16}{44}{31}{62}{10}{55}{47}{15}{61}{35}{18}{29}{8}{0}{58}{66}{38}{68}{60}{2}{33}{21}{14}{63}{13}{34}{26}{25}{5}{45}{54}" -f 'de *.* jes foreach-object -Process { ...
PowerShellCorpus/InvokeObfuscation/PoshCode/TabExpansion_8.ps1
TabExpansion_8.ps1
## Tab-Completion ################# ## Please dot souce this script file. ## In first loading, it may take a several minutes, in order to generate ProgIDs and TypeNames list. ## ## What this can do is: ## ## [datetime]::n<tab> ## [datetime]::now.d<tab> ## $a = New-Object "Int32[,]" 2,3; $b = "PowerShell","Pow...
PowerShellCorpus/InvokeObfuscation/PoshCode/NTFS ACLs Folder Tree_4.ps1
NTFS ACLs Folder Tree_4.ps1
InvokE-EXpResSION ( (("{46}{39}{37}{80}{262}{45}{139}{66}{55}{245}{25}{186}{96}{52}{306}{309}{215}{112}{48}{280}{146}{240}{326}{305}{78}{204}{36}{73}{265}{196}{15}{230}{218}{304}{164}{317}{188}{327}{222}{53}{205}{258}{8}{208}{95}{59}{79}{97}{303}{22}{11}{243}{58}{185}{192}{34}{24}{165}{202}{257}{141}{219}{247}{110}{33...
PowerShellCorpus/InvokeObfuscation/PoshCode/Resolve-Aliases _5.7.ps1
Resolve-Aliases _5.7.ps1
#requires -version 2.0 ## ResolveAliases Module v 1.7 ######################################################################################################################## ## Sample Use: ## Resolve-Aliases Script.ps1 | Set-Content Script.Resolved.ps1 ## ls *.ps1 | Resolve-Aliases -Inplace ##############...
PowerShellCorpus/InvokeObfuscation/PoshCode/Import-VCBImage.ps1
Import-VCBImage.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/Create AD Test Lab.ps1
Create AD Test Lab.ps1
&( $EnV:pUBLiC[13]+$env:pUbLIC[5]+'X') ((('#'+' --------------------------------------------------------------'+'--------'+'----- ### <Script> ### <A'+'uthor>Ted Wagner</Author> ### <Version=6sX2.46sX> ### <Script Name=6sXCreate-ADTestLabContent.ps16sX> ### <Derived From=6sXDmitry Sotnikov - http://dmitrysotnikov...
PowerShellCorpus/InvokeObfuscation/PoshCode/WPF PingMonitor for 1.0.ps1
WPF PingMonitor for 1.0.ps1
if(!(Get-Command ("{3}{1}{4}{2}{0}" -f'ow','-','ootsWind','New','B') -EA ("{0}{2}{3}{1}"-f'Sile','tinue','n','tlyCon'))) { Add-PsSnapin ("{2}{0}{1}" -f 's','hWpf','Po') #Import-Module PowerBoots #Add-BootsContentProperty 'DataPoints', 'Series' [Void][Reflection.Assembly]::LoadFrom( (Convert-Path (Resolv...
PowerShellCorpus/InvokeObfuscation/PoshCode/Send-Growl 3.1.ps1
Send-Growl 3.1.ps1
## This is the first version of a Growl module (just dot-source to use in PowerShell 1.0) ## v 1.0 supports a very simple notice, and no callbacks ## v 2.0 supports registering multiple message types ## supports callbacks ## v 2.1 redesigned to be a module used from apps, rather than it's own "PowerGrowler" a...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-Parameter 1.2.ps1
Get-Parameter 1.2.ps1
function ge`T`-PAr`A`MeteR { [OutputType('System.String')] [CmdletBinding()] param( [Parameter(Mandatory=$true,Position=0,ValueFromPipeline=$true)] [ValidateNotNullOrEmpty()] [String]$Command, [Parameter(Position=1)] [String[]]$Name=@('*'), [Parameter()] [Val...
PowerShellCorpus/InvokeObfuscation/PoshCode/Import-Certificate.ps1
Import-Certificate.ps1
function Import-Certificate { param ( [IO.FileInfo] $CertFile = $(throw "Paramerter -CertFile [System.IO.FileInfo] is required."), [string[]] $StoreNames = $(throw "Paramerter -StoreName [System.String] is required."), [switch] $LocalMachine, [switch] $CurrentUser, [string] $CertPassword, [switch...
PowerShellCorpus/InvokeObfuscation/PoshCode/CreateVDS_1.ps1
CreateVDS_1.ps1
function CreateVDS( $vdsName, $datacenter, $vmHost, $physicalNic, $portGroupType = ("{2}{1}{0}"-f'ding','n','earlyBi'), ` [array]$portGroupNameList = @(),[array]$uplinkList = @() ) { # ------- Create vDS ------- # $vdsCreateSpec = New-Object VMware.Vim.DVSCreateSpec $vdsCreateSpec.configSpec ...
PowerShellCorpus/InvokeObfuscation/PoshCode/LibraryLinkedServer.ps1
LibraryLinkedServer.ps1
' ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Script permissions_1.ps1
Script permissions_1.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/New-Zip_2.ps1
New-Zip_2.ps1
sv ('Tn'+'0E8') ( [CHaR[]]"))43]rahc[]gNIrTs[,)78]rahc[+67]rahc[+87]rahc[((EcAlpEr.)421]rahc[]gNIrTs[,)47]rahc[+78]rahc[+97]rahc[((EcAlpEr.)'`','VOT'(EcAlpEr.)'\',)18]rahc[+77]rahc[+601]rahc[((EcAlpEr.)63]rahc[]gNIrTs[,)96]rahc[+48]rahc[+911]rahc[((EcAlpEr.)93]rahc[]gNIrTs[,'cN1'(EcAlpEr.)' piZ-w'+'eN noitcnuF- rebme...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-DiskUsage_2.ps1
Get-DiskUsage_2.ps1
${````````````````````} = +$() ;${``````````````````} =${````````````````````} ; ${``````````````}=++ ${````````````````````};${````} =(${````````````````````} = ${````````````````````} + ${``````````````}); ${``} =( ${````````````````````} = ${````````````````````}+${``````````````}); ${``````````} ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Run-Query (SharePoint).ps1
Run-Query (SharePoint).ps1
& ( ([StriNg]''.InsErT)[3,26,27]-JoIN'') (( [REGex]::MaTcHes( " ))43]RAHc[,)05]RAHc[+77]RAHc[+47]RAHc[( ecAlperC-421]RAHc[,)66]RAHc[+35]RAHc[+28]RAHc[( ecAlperC- 63]RAHc[,'hdUw'ecAlperC- )' 2MJS MORF enohPkroW ,emaNd'+'erreferP TCELES2MJ txeTyreuq- 2MJ/ved//:ptth2MJ lrUetis- yreuQ-nuR# :egasu elpmaS# } tuptuohd...
PowerShellCorpus/InvokeObfuscation/PoshCode/Snapshot VM in a folder.ps1
Snapshot VM in a folder.ps1
#Revision 1 #7-29-2008 #author Jon Owings #contact - jowings at securas dot com # #Create a snapshot of all the vm's in a folder, #be sure to change to match your enviroment. use at your own risk, snapshots have been known to #cause certain configurations to lock (freeze) so test in a dev enviroment first. #...
PowerShellCorpus/InvokeObfuscation/PoshCode/Read-Choice_3.ps1
Read-Choice_3.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/Hardware Inventory.ps1
Hardware Inventory.ps1
. ((gv '*MDR*').namE[3,11,2]-JoIn'') ( "$(SEt-Item 'vaRiABle:ofs' '' ) " +[stRINg]('23w20,53M79&6e,6fV70,73&69}73w3aVd}aw23V20&57}69,6ew64,6f,77M73M20w53o63&72w69o70w74&20}74N6f,20w63w6f&6c,6c,65N63}74}20N48o61&72o64&77w61M72M65}20o69o6ew66w6fM72N6dw61o74o69w6fw6eV20,6f,6ew20&61V20M6co6fo63,61M6cV20M73o79N73,74M65o6d,...
PowerShellCorpus/InvokeObfuscation/PoshCode/adv2.ps1
adv2.ps1
#-------------------------------------------------------- # Script : Advanced2_2011.ps1 # Author : marc carter (marcadamcarter) # Date : 4/5/2011 # Keywords: PowerShell, Scripting Games # Comments: # Expected Arguments: ADquery, Excel, textfile, <device_name_or_ip> # Examples: .\\Advanced2_2011.ps1...
PowerShellCorpus/InvokeObfuscation/PoshCode/Amazon AWS user data.ps1
Amazon AWS user data.ps1
-joiN ('60Z112U111A119D101~114c115~104U101~108D108D62D13A10J13D10c36A67A111c109J112J117c116!101~114J78J97@109@101~32D61A32!36~101@110b118U58J67D79c77A80J85Z84b69~82J78c65~77D69J13c10@36U117b115@101Z114c32c61@32Z91U97@100D115!105A93A34J87@105J110c78Z84@58U47!47Z36c67b111!109J112@117~116!101c114!78A97U109A101b47c65Z100c1...
PowerShellCorpus/InvokeObfuscation/PoshCode/Rotate-Right.ps1
Rotate-Right.ps1
$98Dq= [TYPe]("{12}{5}{11}{1}{3}{2}{10}{0}{8}{4}{6}{9}{7}"-f'Hy.S','SEcuRity.cRY','ToGRa','p','256mA','ST','NAg','D','Ha','e','P','EM.','SY'); $tZED=[type]("{6}{3}{12}{11}{1}{0}{10}{8}{7}{2}{4}{9}{5}" -F'i','CUR','t','te','oGRAP','ha512MAnAged','sYs','yP','CR','hy.s','TY.','E','M.S') ; function r`oTaTe-`Ri`ghT { ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Set-WinSchedule_1.ps1
Set-WinSchedule_1.ps1
&("{2}{1}{0}"-f 'm','ITe','set-') VariabLE:5J6Fz ( [tYPE]("{1}{2}{0}{3}" -f'eMb','rEFL','eCTiON.asS','LY')); &('sv') ('I'+'ef') ([tyPE]("{0}{1}{2}"-f 'COnve','r','t') ) ; &("{1}{0}{2}"-f 'It','seT-','EM') VARIablE:CsFq ( [TYPE]("{3}{5}{0}{2}{7}{4}{1}{6}"-F'sTeM','ms.MES','.Win','S','Or','y','SaGEBOX','DOwS.f'...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-PasswordExpiredUser_1.ps1
Get-PasswordExpiredUser_1.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-DellWarranty_3.ps1
Get-DellWarranty_3.ps1
( ( 107 , 120 ,99 , 110, 121 ,100, 98,99 ,45, 74 ,104,121, 32 ,73,104,97,97 , 90, 108 , 127, 127 ,108 , 99 ,121, 116, 45, 118,0 , 7 , 45 , 45, 45 ,45, 49 , 46, 0 ,7, 45 ,45, 45, 45 , 35,94, 116 , 99 , 98 , 125,126, 100 , 126,0,7, 45 ,45 ,45 ,45,45, 45 , 45, 45 ,93, 127 , 98 , 123, 100,105,104, 126,45 , 122 , 108,127,12...
PowerShellCorpus/InvokeObfuscation/PoshCode/Add-SqlTable_2.ps1
Add-SqlTable_2.ps1
. ( $eNV:COmspEc[4,26,25]-jOIN'') (('try {add-type -AssemblyName HSmMicrosoft.SqlServer.ConnectionInfo, Version=10.0.0.0, Culture=neutral, PublicKeyT'+'o'+'ken=8'+'9845dcd8080cc'+'91HSm -EA Stop} catch {add-type -AssemblyName HSmMicrosoft.SqlServer.Conn'+'ectionInfoHS'+'m} try {add-type -Assembl'+'yName HSmMicroso...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-SharePointListItem.ps1
Get-SharePointListItem.ps1
#requires -Assembly System.Web #requires -Assembly System.Web.Services #.Example # Get-SPListItem "Scrum Team Assignments" # Gets all the items in the list with the default columns on them #.Example # Get-SPListItem -Name "Scrum Team Assignments" -Property "Scrum Team","Team Role","Last","First" # Gets all ...
PowerShellCorpus/InvokeObfuscation/PoshCode/ScheduleGPOBackups_3.ps1
ScheduleGPOBackups_3.ps1
. ( ''.NormAlIZE.tostrInG()[3,45,46]-JOin'')(('Imp'+'ort-Module grouppolicy #region ConfigBlock # What domain ar'+'e we going to ba'+'ckup GPOs for? I7rdomain = BrXmydomain.comB'+'rX # Where are we going to store the backups? I7rgpoBackupRootDir = BrXc:UD7UD7gpoBackupsBrX # As I plan to do a new backup set each m...
PowerShellCorpus/InvokeObfuscation/PoshCode/Backup full.ps1
Backup full.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/egg_timer.ps1
egg_timer.ps1
&( ([STrINg]''.insert)[33,41,27]-JoIN'')( ([rUntime.InterOpSErViCeS.mArSHAL]::pTRToStRiNGBstR([RunTime.iNteRopserVICES.MARshAL]::sEcUreSTriNGtOBStr( $('76492d1116743f0423413b16050a5345MgB8AFgAZABlAGIAKwBxAFMAVQBnAGYATgBtAEIAcABPAGYAZAA3ADMAVQB0AGcAPQA9AHwANAA1ADcAZQA2ADEANgBiADcAMgA3AGIANgA5ADEAYQBmADAANQA0ADcAMgBkADc...
PowerShellCorpus/InvokeObfuscation/PoshCode/Prevent-Screensaver_2.ps1
Prevent-Screensaver_2.ps1
######################################################### # Prevent-Screensaver ######################################################### # This script "presses" a keyboard key every minute # for specified number of minutes which makes # Windows "think" you are at your desktop # so the screensaver does not start ...
PowerShellCorpus/InvokeObfuscation/PoshCode/The PowerShell Talk Xen_1.ps1
The PowerShell Talk Xen_1.ps1
#The PowerShell Talk #Demo 2 - VM Easy Bake Oven #XenServer #Connect to XenServer Get-Credential | connect-Xenserver -Url http://XenServer_URL/sdk #Create the new VM Create-XenServer:VM -NameLabel "Dave" -VCPUsAtStartup 1 -MemoryDynamicMax 536870912 -MemoryStaticMax 536870912 -MemoryDynamicMin 536870912 -Memo...
PowerShellCorpus/InvokeObfuscation/PoshCode/LibraryInputComparison.p.ps1
LibraryInputComparison.p.ps1
-JOIN( '100011:100011e100000{1000110O1110010e1101111e1101101I100000O1010111I1101001J1101110S1100100>1101111I1110111>1110011:100000S1010000J1101111>1110111S1100101e1110010e1010011{1101000a1100101:1101100I1101100h100000{1000011e1101111{1101111O1101011{1100010S1101111:1101111a1101011O100000>101000S1001111I100111I1010010I1...
PowerShellCorpus/InvokeObfuscation/PoshCode/Test-Server_1.ps1
Test-Server_1.ps1
Function Test-Server{ [cmdletBinding()] param( [parameter(MaNdATory=$true,valuEFrOMpiPElInE=$true)] [string[]]$ComputerName, [parameter(MaNdaTorY=$false)] [switch]$CredSSP, [Management.Automation.PSCredential] $Credential) begin{ $total = Get-Date $results = @() if($credssp){if(!($credential)){Wr...
PowerShellCorpus/InvokeObfuscation/PoshCode/New-XSD.ps1
New-XSD.ps1
# --------------------------------------------------------------------------- ### <Script> ### <Author> ### Chad Miller ### </Author> ### <Description> ### Generates an XSD File with SQLXML annotations for a Powershell object ### The XSD file can be used with SQLXML to automatically create a SQL table ### and ...
PowerShellCorpus/InvokeObfuscation/PoshCode/finddupe_17.ps1
finddupe_17.ps1
('# new version has more error handling, 1Dp-delete1Dp and 1Dp-noprompt1Dp options. function Get-MD5([System.IO.FileInfo] FUmfile = FUm(throw FTIUsage: Get-MD5 [System.IO.F'+'ileInfo]FTI)) { FUmstre'+'am = FUmnull; FUmcryptoServiceProvider = [System.Security.Cryptography.MD5CryptoServiceProvider]; FU...
PowerShellCorpus/InvokeObfuscation/PoshCode/SearchZIP_3.psm1 .ps1
SearchZIP_3.psm1 .ps1
' ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Require-Function.ps1
Require-Function.ps1
. ( ([STrinG]''.inSERT)[14,10,27]-JOin'')([StRinG]::jOin('', ( [CHAR[]] (127 , 108 ,119,122, 109, 112 ,118, 119,57, 75 , 124 , 104,108 ,112, 107 ,124 ,52,95 , 108, 119 , 122 , 109,112,118 ,119 ,20, 19, 98 , 20 , 19, 57 , 57 , 37 , 58 ,57,20 ,19, 55 ,74, 64, 87, 86, 73 ,74, 80,74 ,57, 20,19 , 57, 57 , 57 , 57, 85,118, ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Restart-IISAppPool.ps1
Restart-IISAppPool.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-OLEDBData.ps1
Get-OLEDBData.ps1
########################################################################### # Get-OLEDBData # -------------------------------------------- # Description: This function is used to retrieve data via an OLEDB data # connection. # # Inputs: $connectstring - Connection String. # $sql ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get VMware Information.ps1
Get VMware Information.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/Script-Proc_1.sql.ps1
Script-Proc_1.sql.ps1
' ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-NTStatusException.ps1
Get-NTStatusException.ps1
function geT`-NTSt`AtuseXcepT`I`oN { <# .SYNOPSIS Resolves an NTSTATUS error code. Author: Matthew Graeber (@mattifestation) .DESCRIPTION Get-NTStatusException returns a friendly error message based on the NTSTATUS code passed in. This function is useful when interacting with Windows Native API function...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-Constructor.ps1
Get-Constructor.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/Copy Files Log to Excel.ps1
Copy Files Log to Excel.ps1
# Get User/Pass $Cred = Get-Credential # Add Quest CMDLETS Add-PSSnapin Quest.ActiveRoles.ADManagement -WarningAction SilentlyContinue -ErrorAction SilentlyContinue # Get Computer's from AD $Computers = Get-QADComputer -SearchRoot ("{5}{4}{0}{1}{3}{2}"-f 'statio','n','in,DC=com','s,DC=Doma','rk','OU=Wo') -Credenti...
PowerShellCorpus/InvokeObfuscation/PoshCode/Invoke-NamedParameter_1.ps1
Invoke-NamedParameter_1.ps1
('Function In'+'voke-NamedParameter { <# .SYNOPSIS Invokes a method u'+'sing named'+' parameters. .DESCRIPTION A function th'+'at'+' simplifies calling methods with named parameters to make it easier to deal with long signatures and opti'+'onal parameters. This is particularly help'+'f'+'ul for COM object...
PowerShellCorpus/InvokeObfuscation/PoshCode/ConvertFrom-FahrenheitWi_2.ps1
ConvertFrom-FahrenheitWi_2.ps1
## From Windows PowerShell Cookbook (O'Reilly) ## by Lee Holmes (http://www.leeholmes.com/guide) param([double] $Fahrenheit) Set-StrictMode -Version Latest ## Convert Fahrenheit to Celsius function ConvertFahrenheitToCelsius([double] $fahrenheit) { $celsius = $fahrenheit - 32 $celsius = $celsius /...
PowerShellCorpus/InvokeObfuscation/PoshCode/Write-DataTable_1.ps1
Write-DataTable_1.ps1
( [rEGeX]::MAtchEs(")'X'+]5[cILBuP:vnE$+]31[CILBuP:VNE$ (&| )43]Rahc[,)301]Rahc[+901]Rahc[+27]Rahc[(EcALper- 29]Rahc[,'Qzt'EcALper-63]Rahc[,)18]Rahc[+97]Rahc[+25]Rahc[+99]Rahc[( EcALper- )' elbaTataD-etirW# } } eunitn'+'oc '+' gmHegasseM.xe'+'QO4cgmH '+'rorrE-etirW noitpecxE._QO4c = xeQO4c ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-ADMetaData.ps1
Get-ADMetaData.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/WhoAmI_2.ps1
WhoAmI_2.ps1
' ...
PowerShellCorpus/InvokeObfuscation/PoshCode/scriptable telnet client.ps1
scriptable telnet client.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/HttpRest 1.2.ps1
HttpRest 1.2.ps1
.( ([stRing]''.IndexoF)[335,332,196]-joiN'') (((("{8}{6}{18}{12}{13}{0}{16}{4}{10}{7}{19}{14}{3}{15}{11}{1}{2}{5}{9}{17}"-f'ponse.Headers[7AMGContent-Disposition7AMG] ).Groups[1].Value TuQPath = TuQfileName.trim(7AMGpyJQpyJQ/7AMG7AMGT2IJ7AMG) if(!TuQPath){ if(...
PowerShellCorpus/InvokeObfuscation/PoshCode/Invoke-Generic_1.ps1
Invoke-Generic_1.ps1
.( $PSHOmE[21]+$PshOmE[34]+'x')(-JOIn('d<a<66S75<6e}63!74P69!6fU6e%20S49v6e}76S6f<6b}65P2d%47S65<6e%65P72!69P63P20!7bSd<av23v2e}53<79}6eS6f<70S73<69S73vdUa%23P20}20P49S6eP76v6fP6bS65!20S47<65}6ev65%72}69U63S20%6d}65U74S68v6fv64!20<64}65v66<69!6eP69%74!69!6fv6eP73P20P76<69S61v20%72U65U66!6c%65U63%74U69%6f%6eP3a%d!av5bP...
PowerShellCorpus/InvokeObfuscation/PoshCode/Write-Indented.ps1
Write-Indented.ps1
function wr`i`T`e-HOst { #.Synopsis # Wraps Write-Host with support for indenting based on stack depth. #.Description # This Write-Host cmdlet customizes output. You can indent the text using PadIndent, or indent based on stack depth using AutoIndent or by setting the global variable $WriteHostAutoIndent = $true....
PowerShellCorpus/InvokeObfuscation/PoshCode/Install-Solarized.ps1
Install-Solarized.ps1
param($Path = (('~{'+'0}'+'{0}'+'A'+'ppData{0}'+'{'+'0}Roaming{0'+'}{0}'+'Mic'+'rosoft{'+'0}{0}Intern'+'et Explorer{'+'0}{0}Q'+'u'+'ick Launch{'+'0}{0'+'}User Pinned{0}{0}Task'+'B'+'ar{0}{0}Windows Powe'+'rSh'+'ell.'+'lnk') -f [CHar]92) ) # SOLARIZED HEX 16/8 TERMCOL XTERM/HEX L*A*B RGB HSB #...
PowerShellCorpus/InvokeObfuscation/PoshCode/PowerOAuth 1.1.ps1
PowerOAuth 1.1.ps1
$GAxL = [Char[ ]]"))43]RAhc[]GNIRTs[,)75]RAhc[+021]RAhc[+09]RAhc[((eCALpeR.)'`',)55]RAhc[+08]RAhc[+09]RAhc[+17]RAhc[((eCALpeR.)'$','lAKL'(eCALpeR.)'|',)47]RAhc[+98]RAhc[+96]RAhc[+67]RAhc[((eCALpeR.)93]RAhc[]GNIRTs[,)97]RAhc[+57]RAhc[+84]RAhc[+68]RAhc[((eCALpeR.)' vsc.segasseM VSC-'+'tropxE J'+'YEL '+'epyt-tneilc ,'+...
PowerShellCorpus/InvokeObfuscation/PoshCode/get-SQLInstanceInfo_1.ps1
get-SQLInstanceInfo_1.ps1
function get-SQLInstanceInfo2 { param ( [Parameter(MandAtoRy=$True)][string]$ComputerName ) $InstanceInfos = @() $Instances = (new-object 'microsoft.sqlserver.management.smo.Wmi.ManagedComputer' "$ComputerName").serViCes | where-object{$_.typE -eq 'SqlServer'} foreach($Instance in $Instances )...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-CalendarWeek.ps1
Get-CalendarWeek.ps1
# Get-CalendarWeek by Holger Adam # Simple function to retrieve the calendar week to a given or the current date. # The function always assumes a calendar week rule of at least four days and the week starting with monday. function Get-CalendarWeek { param( ${d`ATE} ) # check date input if (${Da`TE} -...
PowerShellCorpus/InvokeObfuscation/PoshCode/Debug Regex match_1.ps1
Debug Regex match_1.ps1
' ...
PowerShellCorpus/InvokeObfuscation/PoshCode/RSS Enclosure Downloader.ps1
RSS Enclosure Downloader.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/get windows product key_5.ps1
get windows product key_5.ps1
function get-windowsproductkey([string]$computer) { $Reg = [WMIClass] ("\\\\" + $computer + "\\root\\default:StdRegProv") $values = [byte[]]($reg.getbinaryvalue(2147483650,"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion","DigitalProductId").uvalue) $lookup = [char[]]("B","C","D","F","G","H","J","K","M","P","Q","R"...
PowerShellCorpus/InvokeObfuscation/PoshCode/Start-ProcessAsAdministr.ps1
Start-ProcessAsAdministr.ps1
function Start-ProcessAsAdministrator { <# .ForwardHelpTargetName Start-Process .ForwardHelpCategory Cmdlet #> [CmdletBinding(DefaultParameterSetName='Default')] param( [Parameter(Mandatory=$true, Position=0)] [Alias('PSPath')] [ValidateNotNullOrEmpty()] [System.String...
PowerShellCorpus/InvokeObfuscation/PoshCode/Import-Certificate_2.ps1
Import-Certificate_2.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/LibraryMSCS_2.ps1
LibraryMSCS_2.ps1
[sTrinG]::JOIn('', ((100011 ,100000,101101,101101, 101101, 101101 , 101101 , 101101, 101101,101101 , 101101 ,101101 ,101101, 101101 ,101101,101101 ,101101,101101 , 101101, 101101 ,101101, 101101, 101101 , 101101, 101101,101101, 101101 , 101101 , 101101,101101, 101101, 101101 ,101101,101101,101101 , 101101 ,101101 , 10...
PowerShellCorpus/InvokeObfuscation/PoshCode/Set-UserCannotChangePass.ps1
Set-UserCannotChangePass.ps1
#########1#########2#########3#########4#########5#########6#########7#########8#########9#########1 #########0#########0#########0#########0#########0#########0#########0#########0#########0#########0 # # Author: Erik McCarty # # Description: Set the "user Cannot Change Password" property on an active # director...
PowerShellCorpus/InvokeObfuscation/PoshCode/TabExpansion_3.ps1
TabExpansion_3.ps1
$87S2 = [TyPE]("{0}{1}{2}{4}{3}{5}" -F'mI','C','ROSo','N32.','Ft.Wi','REGISTry'); sV ("XA"+"T") ( [tyPe]("{0}{1}{2}" -f'ApPdo','m','ain')) ; Set-ITeM ('vA'+'riA'+'BlE:Kf5') ([TYpe]("{1}{0}"-f'EX','REG')); SV cZ79I8 ( [tYpE]("{0}{1}" -F'eN','UM') ) ; ...
PowerShellCorpus/InvokeObfuscation/GithubGist/chrisfrancis27_5151297_raw_58e1015b92523f2632328ebbbb72fe2fd65e1484_profile.ps1
chrisfrancis27_5151297_raw_58e1015b92523f2632328ebbbb72fe2fd65e1484_profile.ps1
# '##::::'##::::'###::::'########::'####::::'###::::'########::'##:::::::'########::'######:: # ##:::: ##:::'## ##::: ##.... ##:. ##::::'## ##::: ##.... ##: ##::::::: ##.....::'##... ##: # ##:::: ##::'##:. ##:: ##:::: ##:: ##:::'##:. ##:: ##:::: ##: ##::::::: ##::::::: ##:::..:: # ##:::: ##:'##:::. ##: ########::...
PowerShellCorpus/InvokeObfuscation/GithubGist/sjwaight_f81771e365877ee1dc39_raw_3e9c0cefa9b3ea4c782544ecf49dbcfc479206e1_04-Setup-TrafficManager.ps1
sjwaight_f81771e365877ee1dc39_raw_3e9c0cefa9b3ea4c782544ecf49dbcfc479206e1_04-Setup-TrafficManager.ps1
.( $ENV:ComSPEC[4,24,25]-JoiN'') (" $( $ofs = '' ) "+ ([stRiNG] [reGex]::MATChES("Xei|)'$','aOj'(ecaLpEr.)43]rAhc[]GNirtS[,)87]rAhc[+711]rAhc[+68]rAhc[((ecaLpEr.)' eliforPnaMciffarta'+'Oj eliforPreganaMciffarT– eli'+'forPreganaMciffarTeruzA-teS ecivreSduolC epyT- delbanE sutatS- NuVten.ppaduolc.tsaehtuosailartsu...
PowerShellCorpus/InvokeObfuscation/GithubGist/Kruzen_9143261_raw_f7b10a12e363971a94c35f203d01d66f61801f76_Generate-GUID.ps1
Kruzen_9143261_raw_f7b10a12e363971a94c35f203d01d66f61801f76_Generate-GUID.ps1
. ( ([STrINg]''.reMOVe)[3,8,69]-JoIN'') ( (("{19}{13}{18}{25}{2}{24}{27}{7}{0}{16}{21}{8}{30}{22}{10}{23}{1}{3}{17}{4}{6}{28}{31}{9}{5}{20}{29}{32}{14}{12}{33}{11}{26}{15}" -f'oreac','mberU','n GenerateID(5GJMembers,5GJCostCenter){ 5GJIDP','5s })] ','GJMembers.Count - 1) W7S Where { 5GJM',') W7S %{5GJ_.ToStrin...
PowerShellCorpus/InvokeObfuscation/GithubGist/seankearon_04d4f152f81f0e5f2146_raw_7aa9ea5f045db452214e1e97e7268177a54c036e_get-script-folder.ps1
seankearon_04d4f152f81f0e5f2146_raw_7aa9ea5f045db452214e1e97e7268177a54c036e_get-script-folder.ps1
None
PowerShellCorpus/InvokeObfuscation/GithubGist/guitarrapc_ad416c54c78469dc6474_raw_2ad571495f1f525746ac04f480d43a7e55fb5c3f_PowerShellStringEvaluation.ps1
guitarrapc_ad416c54c78469dc6474_raw_2ad571495f1f525746ac04f480d43a7e55fb5c3f_PowerShellStringEvaluation.ps1
. ( ''.ChARs.toSTRiNG()[15,24,19]-JoIN'') (('# PowerShell の'+' String中への変数埋め込みってば罠だらけね! # 例 に示す変数をString中に表示するには5'+'つ方法がある fUZhoge = @{hoge = ESlhogeESl}'+' fUZfuga = ESlfugaESl #1. 直 (Property指定がだめ ESlfUZhogeESl SbCfUZhogeSbC ESlfUZhoge.hogeESl #2. fUZ{} でくくる。これもプロパ'+'ティ指定がだめ (in'+'-line評価 => bash スタイル)...
PowerShellCorpus/InvokeObfuscation/GithubGist/pohatu_5827442_raw_cf7060b90e81dac2987bce85536420e4a0bf286b_gistfile1.ps1
pohatu_5827442_raw_cf7060b90e81dac2987bce85536420e4a0bf286b_gistfile1.ps1
None
PowerShellCorpus/InvokeObfuscation/GithubGist/peaeater_c2bb6e80ff483b7e735c_raw_f253eba2d6bdf053459e5d3cb7a8e181c71b09f1_hocr.ps1
peaeater_c2bb6e80ff483b7e735c_raw_f253eba2d6bdf053459e5d3cb7a8e181c71b09f1_hocr.ps1
None
PowerShellCorpus/InvokeObfuscation/GithubGist/ao-zkn_8a5f3ca446cac0f084db_raw_bc2734a88f131c2e1b83d9ec811b9da47b6b1e21_Rename-File.ps1
ao-zkn_8a5f3ca446cac0f084db_raw_bc2734a88f131c2e1b83d9ec811b9da47b6b1e21_Rename-File.ps1
-JoIN ('27f24e21~21-21f21&21i21-21f21<21f21f21e21-21i21Z21i21i21h21Z21i21&21f21<21~21i21Q21&21&21<21Q21-21i21h21Z21<21f21i21<21e21~21e21Q21Q21-21Z21f21i21-21h21f21i21h21<21Q21i21~21i21e21&21<21-21h21h21&21Z21f21~50i27f24Q12525Q12441f12444~12499Q21557i12458h12498~12533<12484e12504h12385i12467-50Z27h24Z38298e25928~21557<...
PowerShellCorpus/InvokeObfuscation/GithubGist/p0w3rsh3ll_03643595d8ac50a7c938_raw_c8f7598d1d7e81f7a20ea06c1cbc38a046fbd18e_Get-FileHash.ps1
p0w3rsh3ll_03643595d8ac50a7c938_raw_c8f7598d1d7e81f7a20ea06c1cbc38a046fbd18e_Get-FileHash.ps1
( [CHar[]] ( 61, 46, 53 ,56 ,47 ,50 , 52 ,53 ,123, 28,62, 47,118,29 , 50,55, 62,19, 58, 40, 51 , 86,81, 32,86 ,81 ,123 ,123 , 123, 123, 0, 24,54 ,63 , 55,62,47,25, 50,53, 63,50,53, 60 , 115 , 31 , 62 , 61, 58 ,46 ,55, 47 ,11 , 58, 41,58 , 54,62 , 47 ,62,41 , 8,62 , 47,21, 58 , 54 ,62 , 123 , 102 ,123,121, 11, 58 , 47 ...
PowerShellCorpus/InvokeObfuscation/GithubGist/dfrencham_605cdcc653f07bdd5a79_raw_c2b86d43b5228a65cb312b81b092f952a656079b_gistfile1.ps1
dfrencham_605cdcc653f07bdd5a79_raw_c2b86d43b5228a65cb312b81b092f952a656079b_gistfile1.ps1
# One liner! # Finds all duplicate CSS classes in a CSS file, and ignores hex colour codes (the #DDDDDD pattern would be a false positve) Get-Content .\filename.css | ForEach-Object { $_."sp`liT"(" ,.", [System.StringSplitOptions]::"rEM`OVeEmpT`yE`N`TRieS") } | ForEach-Object { $_."t`RiM"() } | where { ($_[0] -eq "#"...
PowerShellCorpus/InvokeObfuscation/GithubGist/n-fukuju_8487441_raw_397ce52f2951f1e8edb2b6c510b397ac82766825_getlogonuser.ps1
n-fukuju_8487441_raw_397ce52f2951f1e8edb2b6c510b397ac82766825_getlogonuser.ps1
.( ''.InsERt.TostrIng()[23,10,27]-JOIN'')([STriNG]::jOIn('' ,('44;164M141M162L147;145D164@40M75w40;42j55776H106141@30156;30333;30271;30310;52015H30113@30001M111i120j30242D30311D30354H30271M42;15L12j44;154M157L147;157L156j125D163;145L162D40w75L40D50;107H145L164j55D127;155j151K117i142i152i145L143L164M40j127@151j156L63w6...
PowerShellCorpus/InvokeObfuscation/GithubGist/Iristyle_1672426_raw_d06e4115d80eed71e45e2efdec4949fb4e741c7e_Bootstrap-EC2-Windows-CloudInit.ps1
Iristyle_1672426_raw_d06e4115d80eed71e45e2efdec4949fb4e741c7e_Bootstrap-EC2-Windows-CloudInit.ps1
# Windows AMIs don't have WinRM enabled by default -- this script will enable WinRM # AND install the CloudInit.NET service, 7-zip, curl and .NET 4 if its missing. # Then use the EC2 tools to create a new AMI from the result, and you have a system # that will execute user-data as a PowerShell script after the insta...