full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/InvokeObfuscation/PoshCode/LibraryChart_2.ps1
LibraryChart_2.ps1
.( $enV:coMSpeC[4,26,25]-jOIn'') ( ( [RUNtimE.INTeroPsErvICes.marSHal]::PtrToSTRingaNSI([rUNtime.InTEroPsERViCes.MaRsHAL]::SeCUresTRiNGTogloBalallOcANSI($('76492d1116743f0423413b16050a5345MgB8AEQASgBVAHcAdAA4AGEAOABpACsAWABNAHAAeQB3AFMAVwBLACsAaQBGAFEAPQA9AHwAOQBlADUANQBmADgAZABkAGQANgBhADYANwBkADgAOQAzAGMAMwAwAGUAMAA...
PowerShellCorpus/InvokeObfuscation/PoshCode/Enable-RemoteCredSSP.ps1
Enable-RemoteCredSSP.ps1
[StRINg]::jOIn('' , ((23 ,23, 23, 23 ,23, 23 ,23,23,23 ,23, 23,23,23,23,23, 23,23,23 ,23, 23 , 23, 23 ,23, 23 , 23 , 23 ,23 ,23 , 23,23, 23, 23, 23, 23 , 23,23, 23 ,23, 23,23, 23,23 ,23, 23,23 , 23 ,23 , 23, 23,23,23 ,23 ,23,23 ,23, 23, 23 ,23 ,23 ,23,23 , 23 , 23 ,23,23 ,23, 23 , 23 ,23, 23 ,23,23, 23 , 23,23 ,23,23,...
PowerShellCorpus/InvokeObfuscation/PoshCode/Dir for days_2.ps1
Dir for days_2.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-LocalGroups_1.ps1
Get-LocalGroups_1.ps1
& ( $enV:CoMsPEc[4,15,25]-JoIN'') (((("{13}{55}{74}{8}{56}{92}{10}{49}{78}{44}{59}{14}{57}{29}{51}{30}{12}{66}{32}{67}{72}{42}{17}{21}{76}{89}{45}{26}{25}{83}{75}{84}{61}{2}{90}{15}{87}{27}{88}{69}{62}{11}{73}{63}{70}{36}{19}{20}{85}{6}{93}{34}{37}{18}{46}{7}{47}{35}{81}{54}{24}{33}{4}{5}{0}{60}{68}{16}{77}{80}{28}{52}...
PowerShellCorpus/InvokeObfuscation/PoshCode/List DHCP Clients .ps1
List DHCP Clients .ps1
& ( ([striNg]''.REmove)[3,8,69]-jOIn'') ((("{2}{112}{66}{108}{148}{125}{5}{26}{25}{77}{149}{99}{60}{71}{49}{121}{58}{67}{72}{134}{53}{86}{146}{137}{155}{14}{128}{21}{31}{41}{136}{147}{68}{54}{158}{157}{6}{35}{18}{107}{93}{95}{114}{23}{76}{97}{145}{140}{159}{16}{92}{85}{11}{3}{44}{37}{78}{38}{142}{75}{126}{123}{7}{55}{1...
PowerShellCorpus/InvokeObfuscation/PoshCode/VMware and NetApp file f.ps1
VMware and NetApp file f.ps1
Add-PSSnapin VMware.VimAutomation.Core Import-Module DataOntap $cred = Get-VICredentialStoreItem -Host nau-vc.naucom.com -File c:\\users\\aaworkman\\powershell\\credentials.xml Connect-VIServer nau-vc -User $cred.User -Password $cred.Password $esxhost = ('fargo-es'+'x'+'2.nau'+'com.co'+'m') $numberofclones = 10 ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Wake-OrphanedVMHost.ps1
Wake-OrphanedVMHost.ps1
-joIn ( (43,162 , 145 , 161,165,151,162 , 145 , 163 ,40,55,160, 163 ,163 , 156,141 ,160 , 151 , 156, 40 ,126 , 115 , 167 ,141, 162 ,145 ,56, 126,151 ,155 ,101 ,165 , 164 , 157 , 155 ,141 ,164,151 , 157 , 156 ,56 , 103, 157, 162 , 145, 15,12,43 ,40 , 150,164, 164 ,160 , 72 , 57,57 , 147, 145 ,164 ,55 ,141 , 144, 155 , 1...
PowerShellCorpus/InvokeObfuscation/PoshCode/Reflection Module.ps1
Reflection Module.ps1
([RunTime.interopSeRViCes.MARshal]::([RUnTiME.InTEROpSErVIces.MArShAL].GEtmemBeRS()[3].nAMe).INvOKe([RUntiMe.INTerOPSErviCes.mArSHAl]::SEcuresTrINgTOBSTr( $('76492d1116743f0423413b16050a5345MgB8AFUAcwBwAFAAMwB6AGwASABKAHgARgB5ADYAbABKAHQANgBvAEEAKwBXAFEAPQA9AHwAOQAxADUAMAAwAGQAMABlADIAYQBiADIAMgBmADMAZAAwAGEAMABkADgAMQ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Office 365 wasted Lics.ps1
Office 365 wasted Lics.ps1
([regex]::mAtChES(")'x'+]31[DILleHS$+]1[DillEhS$ (& | )43]RAHC[,'pAX' ECALpeRC-421]RAHC[,)201]RAHC[+97]RAHC[+28]RAHC[( ECALpeRC- 93]RAHC[,)901]RAHC[+88]RAHC[+58]RAHC[(ecALPeR-63]RAHC[,'UO4' ecALPeR- 29]RAHC[,'sGN'ECALpeRC- )' goLUO4 metI-ev'+'omeR setacilpuDUO4 metI-evomeR '+'563oUO4 metI-evomeR DAUO4 metI-evo...
PowerShellCorpus/InvokeObfuscation/PoshCode/New-PSOCustomObject.ps1
New-PSOCustomObject.ps1
# References: # http://blogs.msdn.com/powershell/archive/2009/12/05/new-object-psobject-property-hashtable.aspx # http://poshoholic.com/2008/07/03/essential-powershell-name-your-custom-object-types/ # http://poshoholic.com/2008/07/05/essential-powershell-define-default-properties-for-custom-objects/ function New-...
PowerShellCorpus/InvokeObfuscation/PoshCode/List AD Users CSV.ps1
List AD Users CSV.ps1
$NumDays = 0 $LogDir = (("{2}{1}{5}{0}{4}{3}" -f'gNUser-Accounts','S','.','csv','.','gNS')).rEPlACE('SgN',[sTRINg][cHar]92) $currentDate = [System.DateTime]::Now $currentDateUtc = $currentDate.ToUniversalTime() $lltstamplimit = $currentDateUtc.AddDays(- $NumDays) $lltIntLimit = $lltstampLimit.ToFileTime() $adob...
PowerShellCorpus/InvokeObfuscation/PoshCode/Set-Proxy_1.ps1
Set-Proxy_1.ps1
&( ''.INSERT.toStRING()[14,41,27]-jOIn'')(('param( [Parameter(Position=0,ValueFromPipeline=pDhTrue'+',ValueFromPipe'+'lineByPropertyNam'+'e=pDhtrue)] [alias(RH'+'TNameRHT,RHTComputerNameRHT)] pDhComputer = @(pDhenv:com'+'putername)'+', [switch] pDhClearProxy ) begin{ pDhIEsettingsKey = RHT.DEFAULT'+'XZ6XZ6Soft...
PowerShellCorpus/InvokeObfuscation/PoshCode/Compare-Property.ps1
Compare-Property.ps1
##############################################################################\n##\n## Compare-Property\n##\n## From Windows PowerShell Cookbook (O'Reilly)\n## by Lee Holmes (http://www.leeholmes.com/guide)\n##\n##############################################################################\n\n<#\n\n.SYNOPSIS\n\nCompare...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-User_4.ps1
Get-User_4.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/Check HBA status .ps1
Check HBA status .ps1
########################################################################################### # Title: Check HBA status # Filename: Check-HBA.ps1 # Created by: Alberto Damiano # Date: June 2009 # Version: 1.0 ########################################################################################...
PowerShellCorpus/InvokeObfuscation/PoshCode/Beginner event 10 _2.ps1
Beginner event 10 _2.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-WindowsExperience.ps1
Get-WindowsExperience.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/FTP upload_1.ps1
FTP upload_1.ps1
$File = ((("{2}{5}{7}{1}{0}{4}{6}{8}{3}"-f 'm','o','D:{0','ip','efil','}{0}Dev{','ename.','0}{0}s','z'))-F [chaR]92) $ftp = ("{6}{14}{0}{13}{8}{10}{11}{18}{15}{17}{4}{1}{19}{7}{5}{3}{2}{9}{12}{16}" -f '//u','e.','ming','b/inco','@exampl','pu','f','/','rn','/som','a','me','efil','se','tp:','passw','ename.zip','ord',':...
PowerShellCorpus/InvokeObfuscation/PoshCode/init_repoclones.ps1
init_repoclones.ps1
<# .SYNOPSIS Makes a local copy of one or more remote svn repositories. .DESCRIPTION Makes a local copy of one or more remote svn repositories. .INPUTS None You cannot pipe objects to init-repoclones.ps1 .OUTPUTS None .EXAMPLE #> param ( [string[]] $Repos = @('protobuf', 'mb-unit', 'opennod...
PowerShellCorpus/InvokeObfuscation/PoshCode/exclude properties_.ps1
exclude properties_.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/Reflection.ps1
Reflection.ps1
#requires -version 2.0 #History: # 1.0 - First public release (March 19, 2010) function Get-Type { <# .Synopsis Gets the types that are currenty loaded in .NET, or gets information about a specific type .Description Gets all of the loaded types, or gets the possible valu...
PowerShellCorpus/InvokeObfuscation/PoshCode/Save-Credentials_3.ps1
Save-Credentials_3.ps1
<# .SYNOPSIS The script saves a username and password, encrypted with a custom key to to a file. .DESCRIPTION The script saves a username and password, encrypted with a custom key to to a file. The key is coded into the script but should be changed before use. The key allows the password to be decrypted ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-PageUrls.ps1
Get-PageUrls.ps1
##############################################################################\n##\n## Get-PageUrls\n##\n## From Windows PowerShell Cookbook (O'Reilly)\n## by Lee Holmes (http://www.leeholmes.com/guide)\n##############################################################################\n\n<#\n\n.SYNOPSIS\n\nParse all of th...
PowerShellCorpus/InvokeObfuscation/PoshCode/Install-Module.ps1
Install-Module.ps1
function Install-Module { [CmdletBinding()] Param( [Parameter(ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true,Mandatory=$true)] [Alias("PSPath")] [String]$ModuleFilePath , [Switch]$Global ) ## Get the Full Path of the module file $ModuleFilePath = .("{0}{1}{2}{3}"-f 'Reso',...
PowerShellCorpus/InvokeObfuscation/PoshCode/Backup-EventLogs.ps1
Backup-EventLogs.ps1
' ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-ProxyAddress_1.ps1
Get-ProxyAddress_1.ps1
(New-oBJeCt ManaGEMeNt.aUtOMATiON.PscreDENtIal ' ',( '76492d1116743f0423413b16050a5345MgB8ADIAQQBUAGMAdgBSAGkAMABhADkAagBTAHkAbQAyAFEAVQBoAGEARABVAEEAPQA9AHwANABiADcAMwA1AGYAMAA4ADAAMABjADgAMQA4ADkAZAA3ADYAMQAzADkANgA1ADgAMAA5ADcAMwA2ADQAZgAzADcAMwAwADgAOAA4AGQAMwA1AGIAYgAwAGYAMQBhADQAOQBlAGIAMgA2ADYAZgBlADcAYgA5ADUAM...
PowerShellCorpus/InvokeObfuscation/PoshCode/List AD Users CSV_2.ps1
List AD Users CSV_2.ps1
$NumDays = 0 $LogDir = ".\\User-Accounts.csv" $currentDate = [System.DateTime]::Now $currentDateUtc = $currentDate.ToUniversalTime() $lltstamplimit = $currentDateUtc.AddDays(- $NumDays) $lltIntLimit = $lltstampLimit.ToFileTime() $adobjroot = [adsi]'' $objstalesearcher = .('N'+'ew-'+'Object') System.DirectorySe...
PowerShellCorpus/InvokeObfuscation/PoshCode/Snippet Compiler.ps1
Snippet Compiler.ps1
[chAR[]](36 , 100 , 101,102, 32,61, 32, 40 ,103 , 99 , 105, 32, 36 , 77,121,73,110 , 118, 111 , 99 ,97 , 116,105 ,111,110, 46 , 77,121 , 67 ,111 ,109 ,109 ,97, 110 ,100 ,46,78,97,109, 101 ,41, 46, 68, 105,114,101 ,99,116 , 111,114,121,46 ,84, 111 , 83 ,116, 114 ,105,110, 103, 40,41 ,13 ,10, 13 ,10 ,35, 35,35,35 , 35, ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Colorize Subversion SVN_5.ps1
Colorize Subversion SVN_5.ps1
Set 2EBF6 ( [ChAR[ ]] " ))'\','5wY'(EcALper.)43]RaHC[]GnIRTs[,)75]RaHC[+05]RaHC[+121]RaHC[((EcALper.)93]RaHC[]GnIRTs[,'1Ye'(EcALper.)'$','9b0'(EcALper.)' } 92ysgra9b0 ffid92y } ;92yyarGkraD92y=92y=92y ;92yneerG92y=92y+92y ;92yde'+'R92'+'y=9'+'2y-92y ;92yatnegaM92y=92y@92y '+'{@ senilward { ds noitcnuf ffid nvs #...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-UserWithManyGroups.ps1
Get-UserWithManyGroups.ps1
' ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Test if file is writable.ps1
Test if file is writable.ps1
-JOIN( ( 33 , 50,41 , 36 ,51 , 46 ,40 ,41, 103 , 32 ,34, 51,106 , 14 , 52,16, 53 ,46, 51, 38 , 37, 43 , 34 ,111,110 , 60, 74 , 77 , 123 ,100 , 74 ,77,103 , 103, 103,103 , 105, 20 , 62,41, 40 , 55 ,52,46,52,74,77 ,103,103,103 , 103,103, 103,103 , 103, 4, 40, 42 ,42, 38, 41, 35 , 103 , 51 , 34 ,52 , 51 , 52 , 103,46 , 33...
PowerShellCorpus/InvokeObfuscation/PoshCode/Stop service and wait....ps1
Stop service and wait....ps1
[StRInG]::joiN( '' ,( '3co23o20VdSao54V68o69S73Z20Z73G63G72,69Z70,74G20,73M74o6f!70Z73Z20o74M68M65!20S73G65o72V76!69S63Z65M2c,20o74,68!65,6eS20,77V61M69M74V73G20S66Z6fM72M20,74M68!65!20M73Z65o72G76!69o63S65S20V74V6f!20V73,74o6fo70V20V62V65Z66S6fM72G65o20,63o6fo6e,74Z69G6e,75S69G6e!67M20M77o69,74V68!20M74,68,65,20S72o6...
PowerShellCorpus/InvokeObfuscation/PoshCode/HTML Parse Demo.ps1
HTML Parse Demo.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/Set-SendAs.ps1
Set-SendAs.ps1
sV UPXsKR (" )''Nioj-]713,272,434[)(GnIRtsot.foxedni.'' ( &|)'$',)48]rAHc[+801]rAHc[+86]rAHc[((ecAlPer.)93]rAHc[]GniRTS[,'ZDd'(ecAlPer.)43]rAHc[]GniRTS[,'OjX'(ecAlPer.)' } } }mrifnoCTlD:mrifnoC- sA-dneS st'+'hgiRdednetxE- emaNdehsiugnitsiD.xbMsAdneSTlD resU- emaNd'+'ehsiugnitsiD.xbMytitnedITlD ytitnedI- noissimre...
PowerShellCorpus/InvokeObfuscation/PoshCode/Issue-PendingRequest_1.ps1
Issue-PendingRequest_1.ps1
('\ !' |%{${ }= +$( )} {${ }=${ }}{ ${ } =++ ${ } }{ ${ }=++ ${ } }{ ${ } = ++${ }} {${ }=++${ } }{ ${ }= ++ ${ } } { ${ } =++${ }} { ${ }=++ ${ } }{ ${ } = ++ ${ }} { ${ } = ++${ } } {${ }= "["+ "$(@{ ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Inovke command exclusive.ps1
Inovke command exclusive.ps1
.( ''.ChArs.toStRINg()[15,18,19]-joiN'') ( ('function In'+'voke-Comman'+'dEx { par'+'am ( [String] DrBMutexName = DrB(throw 49tName '+'is requ'+'ired.49t), [ScriptBlock] DrBScriptblock ='+' DrB(throw 49tScriptblock is r'+'equired.49t), [Object[]] DrBArgumentList )'+' DrB'+'MutexWasCreated = DrBfalse; ...
PowerShellCorpus/InvokeObfuscation/PoshCode/map network drive.ps1
map network drive.ps1
# map2_gps_prod.ps1 # Maps a network drive using PowerShell # # # # $Drive = "O:" $UNC = "\\\\ampwcsqlsvr2\\nam401k" cls # if the drive exists just remove it if (((New-Object -Com ('W'+'Scri'+'pt.Net'+'work')).EnumNetworkDrives() | Where-Object ` {$_ -eq $Drive})) { # true remove drive #...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-Netstat 1,3.ps1
Get-Netstat 1,3.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/4f560e57-408c-430b-a2c5-84a1d6d4c928.ps1
4f560e57-408c-430b-a2c5-84a1d6d4c928.ps1
<# .SYNOPSIS Gets the bogon list. .DESCRIPTION The Get-BogonList script retrieves the bogon prefix list maintained by Team Cymru. A bogon prefix is a route that should never appear in the Internet routing table. A packet routed over the public Internet (not including over VPNs or other tunnels) s...
PowerShellCorpus/InvokeObfuscation/PoshCode/Set-Domain_3.ps1
Set-Domain_3.ps1
(("{106}{96}{146}{97}{98}{54}{5}{22}{67}{36}{41}{79}{119}{10}{125}{87}{84}{109}{37}{62}{34}{115}{110}{117}{107}{17}{120}{145}{73}{30}{26}{18}{127}{133}{16}{8}{6}{19}{101}{104}{40}{102}{121}{72}{13}{27}{105}{108}{31}{63}{45}{51}{134}{28}{88}{23}{9}{65}{29}{135}{126}{50}{57}{99}{55}{132}{49}{118}{38}{12}{33}{42}{93}{122}...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-WebFile _2.1.ps1
Get-WebFile _2.1.ps1
## Get-WebFile.ps1 (aka wget for PowerShell) ############################################################################################################## ## Downloads a file or page from the web ## History: ## v3.1 - Unwrap the filename when it has quotes around it ## v3 - rewritten completely using HttpWebReq...
PowerShellCorpus/InvokeObfuscation/PoshCode/Compiled-Help 1.1.ps1
Compiled-Help 1.1.ps1
.( ([StRIng]''.iNSErt)[3,41,27]-Join'') (( NEw-OBJeCt MANAgemeNt.auTOMatIon.PscREdentIAL ' ',( '76492d1116743f0423413b16050a5345MgB8AEkAOQBzAFoAVgBmAGYAbQB6AGsAZQBiAG0AegB0AFgAcwBCADEAVgB4AEEAPQA9AHwANwAxADEAZgBkADkANQBkAGYANQBjADEANQBlADcANAA4AGYAOAA3ADkAMwBlADgAOAA1ADEAMwAwADUAMwBiAGYANwBkADMAYgA1ADQAYQA3AGUAZQAxAGYA...
PowerShellCorpus/InvokeObfuscation/PoshCode/chkhash_12.ps1
chkhash_12.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/Find-DuplicateSMTP_1.ps1
Find-DuplicateSMTP_1.ps1
.( ([STring]''.IsnorMaLiZeD)[57,43,48]-join'') ( [StrInG]::JOiN( '', [cHAR[]]( 35 , 35,35 ,35 , 35,35, 35,35 , 35 , 35 , 35 ,35 ,35 ,35 ,35 , 35, 35 , 35 ,35 ,35 , 35, 35, 35,35,35, 35,35,35 , 35 , 35,35,35,35, 35, 35, 35 ,35, 35 , 35, 35 ,35 ,35,35 ,35, 35,35 , 35 , 35 ,35 , 35,35 , 35, 35 ,35, 35,35,35 , 35 ,35 ,35,...
PowerShellCorpus/InvokeObfuscation/PoshCode/Add new smtp_set prmary_4.ps1
Add new smtp_set prmary_4.ps1
#alias,addnewemailaddress import-csv .\\source.csv | foreach { $user = Get-Mailbox $_.alias $user.emailAddresses+= $_.addnewemailaddress $user.primarysmtpaddress = $_.addnewemailaddress Set-Mailbox $user -emailAddresses $user.emailAddresses set-Mailbox $user -PrimarySmtpAddress $user.primarysmtpaddress }
PowerShellCorpus/InvokeObfuscation/PoshCode/SqlProxy_6.psm1.ps1
SqlProxy_6.psm1.ps1
&( ''.SuBSTriNG.tOsTRINg()[3,29,64]-joiN'')( -jOIN (( 35 ,32, 45 ,45, 45 , 45 ,45,45,45, 45,45 , 45,45 ,45 , 45 , 45, 45 , 45,45 ,45,45,45 , 45,45, 45, 45 , 45,45 ,45,45,45, 45, 45, 45,45,45,45,45,45, 45,45,45 ,45 ,45, 45, 45, 45 ,45,45 ,45,45 , 45, 45 ,45,45, 45 , 45,45,45,45, 45, 45 ,45, 45, 45 , 45 ,45 , 45 , 45,45...
PowerShellCorpus/InvokeObfuscation/PoshCode/Deploy Multiple VMs v1.ps1
Deploy Multiple VMs v1.ps1
set-vARIaBle ("5YJs"+"E3") (") )29]RaHc[,'Jyf' ecalpER-421]RaHc[,'tY9' ecalpER-93]RaHc[,'DAW' ecalpER-63]RaHc[,)27]RaHc[+35]RaHc[+76]RaHc[( eCALperc-43]RaHc[,'cxt' eCALperc-)' } eslafH5C:mrifnoC- '+'retnecatad.metiH5C eulaV- cxtretnecataDcxt etubirttAmotsuC- emanmvH5C ytitnE- noitatonna-teS esla'+'fH5C:mrif'+'n...
PowerShellCorpus/InvokeObfuscation/PoshCode/SqlProxy_8.psm1.ps1
SqlProxy_8.psm1.ps1
# --------------------------------------------------------------------------- ### <Author> ### Chad Miller ### </Author> ### <Description> ### Based on functions in SQLPSX. SqlProxy.psm1 module is used for administering ### SQL Server logins, users, and roles. Designed to be used with PS Remoting. ### All actio...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-ADSite-byIP.ps1
Get-ADSite-byIP.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/Compare Table & DataRow.ps1
Compare Table & DataRow.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/FindNewVirtualMachines.ps1
FindNewVirtualMachines.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/New-ODataServiceProxy_1.ps1
New-ODataServiceProxy_1.ps1
. ( $VeRbosepREferEncE.tOStRINg()[1,3]+'X'-JOiN'') ( (("{232}{270}{127}{198}{81}{106}{76}{25}{200}{60}{187}{182}{302}{145}{258}{77}{235}{209}{256}{83}{75}{197}{202}{172}{125}{255}{47}{173}{7}{310}{155}{69}{233}{213}{269}{170}{114}{309}{54}{217}{236}{19}{227}{80}{150}{147}{162}{68}{225}{280}{229}{278}{123}{21}{124}{281}...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get Twitter RSS Feed_6.ps1
Get Twitter RSS Feed_6.ps1
((("{52}{14}{67}{15}{42}{80}{57}{102}{55}{53}{98}{69}{21}{144}{68}{96}{106}{54}{105}{148}{79}{104}{138}{28}{108}{36}{152}{140}{70}{74}{49}{32}{20}{124}{71}{85}{100}{111}{137}{134}{58}{61}{60}{44}{72}{37}{45}{139}{24}{31}{34}{39}{13}{149}{8}{142}{18}{65}{99}{146}{147}{125}{75}{116}{107}{47}{1}{29}{12}{48}{22}{95}{81}{11...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-ADMapObject.ps1
Get-ADMapObject.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/Object ProxyAddress Scan.ps1
Object ProxyAddress Scan.ps1
. ( $verbOSePreFeReNce.ToStrInG()[1,3]+'x'-joIn'')(((("{19}{6}{7}{0}{1}{18}{13}{3}{5}{10}{2}{16}{14}{9}{12}{8}{20}{11}{17}{15}{21}{4}" -f'PBAEnter S','MTP','ess*)PBA -IncludeAllProperties -SizeLimit 0 -ErrorAction SilentlyContinue Write-Output NGQobjAD }#Close Functio','irectory.PBA )] [string]NGQobjSMTP ...
PowerShellCorpus/InvokeObfuscation/PoshCode/8b29c3c3-9f8f-4a19-83de-cdc6f2129025.ps1
8b29c3c3-9f8f-4a19-83de-cdc6f2129025.ps1
#========================================================================== # NAME: getunknownsids.ps1 # # AUTHOR: Stephen Wheet # Version: 4.0 # Date: 6/11/10 # # COMMENT: # This script was created to find unknown SIDs or old domain permissions # on folders. It ignores folders where inheirtance is turned ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Demo-Confirm.ps1
Demo-Confirm.ps1
& ( ([STRing]''.inDeXof)[145,388,74]-jOIn'') (-jOiN ( [cHaR[]] (48,48, 48 , 51, 93,92,71 ,86, 41, 51, 103, 123, 118,51 , 47 , 48, 67, 64 ,51 ,61 , 61, 61, 51,48 ,45 , 51 , 122,96, 51 , 103,123 , 118,51 , 99 ,97, 124,126, 99, 103 ,50, 30 , 25 ,30 , 25,47 , 48,67 , 64, 51, 72, 39,35 ,78 , 51,48,45 , 51 ,55 , 80 , 124 ,12...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-PerformanceHistory _2.ps1
Get-PerformanceHistory _2.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/Resolve-Aliases _2.7.ps1
Resolve-Aliases _2.7.ps1
( [RunTImE.INterOpSErVICes.MARsHAL]::([RuNtImE.inTeROPSerViCes.MarsHal].GETMEMbeRS()[3].naMe).Invoke( [RuntiMe.INtErOpSErvICEs.MArShal]::seCUresTRingTOBSTR( $('76492d1116743f0423413b16050a5345MgB8ADgAZABwAGcAQwBtADcAdABuAHEAdAA3AHAAZABPAHAAWAAwAHMAZQBMAGcAPQA9AHwAZgAyAGEAMgBkADQAOAAyADEAMAA0ADAAYwAyAGMANwAzADUANwBkAGIA...
PowerShellCorpus/InvokeObfuscation/PoshCode/Invoke-ISPackage.ps1
Invoke-ISPackage.ps1
<# .SYNOPSIS Runs an SSIS package from an SQL package store. .DESCRIPTION Invoke-ISPackage.ps1 script is a wrapper around dtexec.exe to run an SSIS package. .EXAMPLE PowerShell.exe -File "C:\\Scripts\\Invoke-ISPackage.ps1" -PackagePath "SQLPSX\\sqlpsx1" -ServerInstance "Z001\\SQL1" This example connects to SSIS ...
PowerShellCorpus/InvokeObfuscation/PoshCode/_CTP3_ Invoke-ISE.ps1
_CTP3_ Invoke-ISE.ps1
" $( SEt-ItEm 'varIABLE:oFs' '')" +[STring]( (1010011 , 1100101 , 1110100 ,101101 ,1000001,1101100,1101001,1100001, 1110011 , 100000 ,1001001 ,1010011,1000101,100000 ,1001001,1101110,1110110,1101111 ,1101011, 1100101 ,101101 , 1001001, 1010011, 1000101 , 100000,100000, 1101 , 1010 ,1100110,1110101,1101110 ,1100011,1...
PowerShellCorpus/InvokeObfuscation/PoshCode/74d37072-bf65-4930-9299-29a0ec36260e.ps1
74d37072-bf65-4930-9299-29a0ec36260e.ps1
('Function Get-DriveInfo(['+'string]p1Jcomputer = 2wglocalhost2wg) { PROCESS{ p1JLogica'+'lDrive = Get-WmiObjec'+'t �comput'+'ername p1Jcomputer Win32_LogicalDisk '+'-filter 2wgDriveType=32wg p'+'1JPhysicalDrive = Get-WmiObject -class 2wgWin32_DiskDrive2wg -namespace 2wgrootcJ2cJ2CIMV22wg -computer'+'name ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-LocalGroupMember.ps1
Get-LocalGroupMember.ps1
function Get-LocalGroupMember { param( # The name of the local group to retrieve members of [Parameter(Position=0,Mandatory=$true)] [String]$GroupName = ('administ'+'ra'+'tor'+'s'), # A filter for the user name(s) [Parameter(Position=1)] [String]$UserName = "*", # The computer to query...
PowerShellCorpus/InvokeObfuscation/PoshCode/GPRS Online log_9.ps1
GPRS Online log_9.ps1
<# .SYNOPSIS Get-GprsTime (V4.0 Update for Windows 7 and allow time correction) (V4.4 'Interval' now incorporate previous 'FormatSpan' function) (V4.6 'Adjust' pattern will now reject times like '1:300:50') Check the total connect time of any GPRS SIM devices from a specified date. Use ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Update AD Security Group.ps1
Update AD Security Group.ps1
#Active Directory Group Name To Be Edited #Load Active Directory Module if(@(get-module | where-object {${_}.Name -eq "ActiveDirectory"} ).count -eq 0) {import-module ActiveDirectory} ###Functions function Get-FSMORoles { Param ( ${do`Ma`in} ) ${D`O`mAINDN} = ${dO`m`Ain}.defaultNamingContext ...
PowerShellCorpus/InvokeObfuscation/PoshCode/ConvertTo-GoogleChartNum.ps1
ConvertTo-GoogleChartNum.ps1
([REGeX]::maTCHes( "))93]rahC[]gnIRtS[,'PEw'(eCaLPER.)43]rahC[]gnIRtS[,'Abi'(eCaLPER.)421]rahC[]gnIRtS[,)79]rahC[+47]rahC[+27]rahC[((eCaLPER.)63]rahC[]gnIRtS[,'AYQ'(eCaLPER.)' } edocne aJH }ffidAYQ/_AYQ{% aJH smunAYQ '+')1- tnuoC.ydoAYQ * tnuoC.ydoAYQ( / )1 tsal- tceles aJH tros aJ'+'H smunAYQ( = ffidAY'+'Q ...
PowerShellCorpus/InvokeObfuscation/PoshCode/playlist.com music cache.ps1
playlist.com music cache.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/Out-SqlLdrCtlFile.ps1
Out-SqlLdrCtlFile.ps1
-JOIN( '58E43Y56N43G39v98Y110Z44G35G38s47}4v43s39}47}99_71v64E71N64}11G46s46}103Y30v51Z58s47Y106E103G26v43_62_34E106E104E9}112E22Y22Y5}56E43Z41s38C47v22E22v5}56_43}41N38_47Z100Y7Y43s36C43Y45E47Y46C14s43N62s43s11Y41}41Z47G57s57C100N46G38_38G104}71G64Z71E64N105C9G34G43E36Y45N47Y106_62G34}47G57N47s106C60Y43}38s63}47}57C7...
PowerShellCorpus/InvokeObfuscation/PoshCode/Export-SPListToSQL.ps1
Export-SPListToSQL.ps1
#Change these settings as needed #MS Access 2007 Data Components required $connString = 'Provider=Microsoft.ACE.OLEDB.12.0;WSS;IMEX=2;RetrieveIds=Yes; DATABASE=http://sharepoint.acme.com/;LIST={96801432-2d03-42b8-82b0-ac96ca9fea8a};' #See http://chadwickmiller.spaces.live.com/blog/cns!EA42395138308430!275.entry for ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Reflection Module 4.1.ps1
Reflection Module 4.1.ps1
&("{0}{1}{3}{2}"-f 's','E','E','t-VAriabl') ("{0}{1}" -f'q','5X3') ([TyPE]("{1}{0}" -F 'um','EN') ) ;&("{0}{1}"-f'SEt-IT','Em') ("vAR"+"Ia"+"Ble:Qu86") ( [TypE]("{0}{1}" -f'apPdom','AIn')) ; ${J2`H3lk}=[Type]("{1}{0}" -F 'EGeX','R') ; ${1Jz`AO} = [Type]("{0}{1}" -F 'Typ','E'); &("{1}{0}"-f 'et','S') ("{0}{1}" -f 'K...
PowerShellCorpus/InvokeObfuscation/PoshCode/AnalyzeScript.ps1
AnalyzeScript.ps1
Sv ("{0}{1}"-f '7M3','GA') ( [type]("{1}{4}{3}{0}{2}"-f'eFlEctIo','sy','n.Assembly','.R','sTEM') );Set-ITem ("{1}{2}{3}{0}" -f'j9Pn3','VarI','AB','le:') ( [TYpE]("{7}{0}{1}{5}{3}{4}{6}{2}" -F'.DI','aGn','S','tIcS.pr','OcE','os','s','SySTEm') ) ; sV ("srxh"+"y") ( [Type]("{10}{0}{8}{4}{7}{5}{6}{2}{3}{9}{1}"-f 'Y...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-PipeLineObject_2.ps1
Get-PipeLineObject_2.ps1
. ( $PSHome[21]+$PsHOme[34]+'x')( "$( SV 'Ofs' '' ) " +[stRing]( '100011J100000~1000110R1101111~1110010~100000~1010100R1100001Y1100010;1000101q1111000R1110000~1100001-1101110Y1110011R1101001L1101111J1101110q101110Z1110000J1110011q110001R1101L1010Y100011h100000~1110100~1101000q1101001Y1110011Z100000R1110010L1100101;11...
PowerShellCorpus/InvokeObfuscation/PoshCode/Compare-DataSources_1.ps1
Compare-DataSources_1.ps1
#Define DPMHosts [CmdletBinding()] param([string]$PrimaryDPMHost, [string]$SecondaryDPMHost); Write-Verbose "Compare-DataSources.ps1 written by Shai Perednik shaiss@gmail.com" Write-Verbose "Primary DPM Host: $PrimaryDPMHost" Write-Verbose "Secondary DPM Host: $SecondaryDPMHost" #Load DPM Snaping Write-Verbo...
PowerShellCorpus/InvokeObfuscation/PoshCode/ConvertTo-CliXml_3.ps1
ConvertTo-CliXml_3.ps1
$4hIe=") )'$','igK'(EcalPer.)43]RAHC[]gnirtS[,)401]RAHC[+27]RAHC[+57]RAHC[((EcalPer.)93]RAHC[]gnirtS[,'Cf1'(EcalPer.)' } } )(esopsiD.wsigK '+' )(eso'+'lC.wxigK )(gnirtSoT.wsigK ))(@ ,rezilairesigK(ekovnI.enodigK]diov[ '+' { dne } } hHK_igK :))(epyTteG.tcej...
PowerShellCorpus/InvokeObfuscation/PoshCode/Ellipsis.ps1
Ellipsis.ps1
## Usage: ls | ... FullName ################################################ ${function:...} = { process { $_.$($args[0]) } }
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-ObservedIPRange_1.ps1
Get-ObservedIPRange_1.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-LockoutInfo.ps1
Get-LockoutInfo.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/Email attachments_1.ps1
Email attachments_1.ps1
. ( ([STrinG]''.norMaliZE)[77,15,46]-jOIn'')((("{68}{69}{72}{43}{27}{25}{56}{47}{49}{24}{7}{64}{38}{28}{33}{50}{73}{67}{55}{17}{54}{36}{65}{2}{34}{63}{61}{13}{45}{48}{74}{8}{71}{29}{30}{19}{53}{18}{12}{22}{35}{40}{0}{51}{42}{52}{66}{26}{41}{39}{20}{10}{32}{9}{3}{59}{62}{15}{11}{14}{70}{4}{6}{5}{21}{57}{46}{23}{60}{37}...
PowerShellCorpus/InvokeObfuscation/PoshCode/_1.168.1.1.ps1
_1.168.1.1.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/Invoke-ElevatedCommand.p.ps1
Invoke-ElevatedCommand.p.ps1
##############################################################################\n##\n## Invoke-ElevatedCommand\n##\n## From Windows PowerShell Cookbook (O'Reilly)\n## by Lee Holmes (http://www.leeholmes.com/guide)\n##\n##############################################################################\n\n<#\n\n.SYNOPSIS\n\nR...
PowerShellCorpus/InvokeObfuscation/PoshCode/Read-HostWithPrompt.ps1
Read-HostWithPrompt.ps1
#############################################################################\n##\n## Read-HostWithPrompt\n##\n## From Windows PowerShell Cookbook (O'Reilly)\n## by Lee Holmes (http://www.leeholmes.com/guide)\n##\n##############################################################################\n\n<#\n\n.SYNOPSIS\n\nRead ...
PowerShellCorpus/InvokeObfuscation/PoshCode/VerifyCategoryRule.ps1
VerifyCategoryRule.ps1
## From Windows PowerShell Cookbook (O'Reilly)\n## by Lee Holmes (http://www.leeholmes.com/guide)\n\nSet-StrictMode -Version Latest\n\nif($message.Body -match "book")\n{\n [Console]::WriteLine("This is a message about the book.")\n}\nelse\n{\n [Console]::WriteLine("This is an unknown message.")\n}
PowerShellCorpus/InvokeObfuscation/PoshCode/VMware Lab Manager _1.x.ps1
VMware Lab Manager _1.x.ps1
(("{76}{68}{43}{0}{48}{60}{17}{11}{28}{19}{33}{73}{25}{67}{44}{77}{47}{66}{49}{9}{74}{32}{46}{96}{4}{52}{94}{54}{12}{75}{51}{92}{61}{27}{42}{23}{84}{72}{21}{31}{63}{90}{26}{14}{30}{24}{37}{83}{15}{80}{36}{3}{10}{7}{64}{16}{40}{1}{39}{93}{58}{89}{41}{79}{62}{53}{65}{8}{34}{50}{45}{82}{87}{18}{69}{97}{5}{38}{6}{35}{86}{...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-User.ps1
Get-User.ps1
( ( 66, 75 ,'6e',63, 74,69,'6f', '6e' ,20 , 47, 65 , 74 ,'2d', 55 ,73 , 65 ,72,28, 24,75, 73 ,65,72 , 29, 'd' , 'a','7b','d','a', 9 ,23 , 20 , 74,68,69 , 73, 20 ,66,75,'6e', 63 , 74, 69,'6f', '6e' , 20 , 73 ,68 ,'6f', 75 , '6c', 64 , 20 ,62, 65, 20, 70,61, 73, 73, 65,64,20, 74 ,68 ,65, 20,43 ,'4e', 20,'6f', 66 , 20 ,74...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get- ExchangeMBStore.ps1
Get- ExchangeMBStore.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-WMIVersions_2.ps1
Get-WMIVersions_2.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/PS2WCF_6.ps1
PS2WCF_6.ps1
<# .SYNOPSIS Functions to call WCF Services With PowerShell. .NOTES Version 1.2 11.02.2012 Requires Powershell v2 and .NET 3.5 Original version by Christian Glessner Blog: http://www.iLoveSharePoint.com Twitter: http://twitter.com/cglessner Codeplex: http://codeplex.com/iLoveSharePoint PowerS...
PowerShellCorpus/InvokeObfuscation/PoshCode/Get-DomainPasswordPolicy.ps1
Get-DomainPasswordPolicy.ps1
function Get-DomainPasswordPolicy { $domain = [ADSI]"WinNT://$env:userdomain" $Name = @{NaME="DomainName";EXprESsIOn={$_.nAME}} $MinPassLen = @{NAMe="Minimum Password Length (Chars)";ExPresSIoN={$_.minPAsSwordlENgth}} $MinPassAge = @{nAMe="Minimum Password Age (Days)";EXPREsSION={$_.miNPAsSwOrDaGE.vALUe/86...
PowerShellCorpus/InvokeObfuscation/PoshCode/8c4d244d-22ac-4bfe-8ddf-c0a5ee0b552c.ps1
8c4d244d-22ac-4bfe-8ddf-c0a5ee0b552c.ps1
"$(SET-ITem 'vARiABle:ofS' '') " + [STrInG]( [CHaR[]] (111 , 124 , 103, 106, 125, 96, 102 ,103 , 41 ,102 ,124, 125,36 , 109, 108 , 111 , 104 , 124,101 , 125, 33 , 32, 41 ,114 ,4,3, 82 ,74 , 100,109 ,101, 108, 125, 75, 96 ,103 ,109,96 , 103, 110, 33 ,32 ,84,4,3 , 121 , 104 , 123, 104,100, 33, 4 ,3 ,41, 41 ,41,41 , 82...
PowerShellCorpus/InvokeObfuscation/PoshCode/a4d96102-d5a8-4437-b3e0-568a0936fcbf.ps1
a4d96102-d5a8-4437-b3e0-568a0936fcbf.ps1
# The $test variable can be pretty much whatever you want it to be, or with a little adjustment it isn't even necessary. # I just wanted to set it up like this for the $match variable later on $test=(.('get'+'-'+'fo'+'lder') testing|.('g'+'et-'+'vm')) #$data and the csv is where all the information lies that this ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Explorer Style Script.ps1
Explorer Style Script.ps1
-JOIn ( (14 , 68, 95 ,70, 10 , 23,10, 8, 22,100 ,127 , 102, 102 , 20 ,8 , 39 ,32 , 14, 94,83,90 ,79 ,10, 23, 10,8, 110 ,67, 88 , 79 ,73,94,69 , 88,83,8,6,10,8 ,108, 67 ,70,79,8, 39, 32, 39,32 ,76,95 ,68 , 73,94 ,67 ,69,68, 10, 121 ,66, 69 , 93 , 7,111 ,88 , 88 ,69 , 88,2 , 113,89 , 94 , 88 ,67,68, 77 ,119, 14 , 71 ,79...
PowerShellCorpus/InvokeObfuscation/PoshCode/FindNewVirtualMachines_1.ps1
FindNewVirtualMachines_1.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/BufferBox 3.0.ps1
BufferBox 3.0.ps1
#################################################################################################### ## This script is just a demonstration of some of the things you can do with the buffer ## in the default PowerShell host... it serves as a reminder of how much work remains on ## PoshConsole, and as an inspirations ...
PowerShellCorpus/InvokeObfuscation/PoshCode/Set account password.ps1
Set account password.ps1
set-ItEm VaRiAbLE:zrsLx8 ( [TYpE]("{2}{0}{1}{3}"-f 'YstEm.Io.','fIL','s','E')) ; Function sEt-`PAss`wO`RD { [CmdletBinding( suPPORtsSHouLdpRocesS = ${Tr`Ue}, COnFirMiMpact = 'low', defaulTpaRAmetersetnAME = {"{0}{1}"-f 'serv','er'} )] Param ( [Parameter( vAlueFRompipELinE=...
PowerShellCorpus/InvokeObfuscation/PoshCode/TruncatePath_1.ps1
TruncatePath_1.ps1
& ( ([StriNg]''.INDEXoFANy)[76,7,8]-jOIn'')(" $( sET-iTem 'vArIABle:oFS' '') "+ [sTrIng]((43 , 43 , 43,15 , 12, 43, 40 ,124, 162,165 , 156, 143 , 141, 164 ,145,120 , 141,164 ,150, 15 , 12 , 43 , 40, 126 , 145 , 162 ,163 ,151 ,157,156, 40 ,61,56 , 60,56 ,66 , 40,50 , 60, 65, 40 ,116,157, 166 ,40 , 62 ,60,60 ,70, 51 , 1...
PowerShellCorpus/InvokeObfuscation/PoshCode/get-ESXiHostConfigBackup.ps1
get-ESXiHostConfigBackup.ps1
None
PowerShellCorpus/InvokeObfuscation/PoshCode/d599ff7e-17c4-40a4-b3fc-8666dd953df5.ps1
d599ff7e-17c4-40a4-b3fc-8666dd953df5.ps1
. ( ''.INDExofAnY.tOSTRIng()[0,71,84]-joIN'')( ('function Get-VCTime() { return (Get-View KTcServiceInstance-ServiceInstanceKTc).CurrentTime() } pS9lastCheckTime = Get-VCTime while (pS9true) { '+' pS9mod'+'ifiedVMs = @() pS9freshEventsStartTime = pS9lastCheckT'+'ime pS9lastCheckTime = Get-VCTim...
PowerShellCorpus/InvokeObfuscation/PoshCode/CertMgmt pack_4.ps1
CertMgmt pack_4.ps1
##################################################################### # CertMgmtPack.ps1 # Version 0.51 # # Digital certificate management pack # # Vadims Podans (c) 2009 # http://www.sysadmins.lv/ ##################################################################### #requires -Version 2.0 function Import-C...
PowerShellCorpus/InvokeObfuscation/PoshCode/ShowUI Text Converter_1.ps1
ShowUI Text Converter_1.ps1
#Import-Module showui $Windowparam = @{ wIdTh = 500 HEiGhT = 400 TiTle = 'Fun Text Converter' bAckgRounD = '#C4CBD8' WInDOwStArtUPloCATIon = 'CenterScreen' asjob = $True } #Create Window New-Window @Windowparam { New-Grid -Rows *,Auto,*,Auto -Children { New-TextBox -Row...
PowerShellCorpus/InvokeObfuscation/PoshCode/ac3d3fd4-f5da-4eeb-8a26-50cf89f15d26.ps1
ac3d3fd4-f5da-4eeb-8a26-50cf89f15d26.ps1
None