File tree 2 files changed +18
-6
lines changed
2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Requires -Version 3
2
2
3
- function Prasadhak
3
+ function Invoke- Prasadhak
4
4
{
5
5
6
6
<#
@@ -15,14 +15,14 @@ on the target system and search the hashes in the Virustotal database using the
15
15
THe APIKEY provided when someone registers to virustotal
16
16
17
17
. EXAMPLE
18
- PS > Prasadhak -APIKEY 1fe0ef5feca2f84eb450bc3617f839e317b2a686af4d651a9bada77a522201b0
18
+ PS > Invoke- Prasadhak -APIKEY 1fe0ef5feca2f84eb450bc3617f839e317b2a686af4d651a9bada77a522201b0
19
19
20
20
. LINK
21
- http://www.labofapenetrationtester.com/2013/01/introducing-prasadhak .html
21
+ http://www.labofapenetrationtester.com/2013/01/introducing-Invoke-Prasadhak .html
22
22
https://github.com/samratashok/nishang
23
23
24
24
. Notes
25
- The word Prasadhak means purifier in Sanskrit language.
25
+ The word Invoke- Prasadhak means purifier in Sanskrit language.
26
26
#>
27
27
[CmdletBinding ()] Param (
28
28
[Parameter (Position = 0 , Mandatory = $True )]
Original file line number Diff line number Diff line change @@ -9,6 +9,18 @@ https://github.com/samratashok/nishang
9
9
#>
10
10
11
11
12
- # Code stolen from here https://github.com/mattifestation/PowerSploit
13
- Get-ChildItem - Recurse (Join-Path $PSScriptRoot * .ps1) | ForEach-Object { if ($_.Name -ne " Keylogger.ps1" ) {. $_.FullName }}
12
+ if (! $PSScriptRoot )
13
+ {
14
+ $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path - Parent
15
+ }
16
+
17
+ if ($PSVersionTable.PSVersion.Major -eq 2 )
18
+ {
19
+ # Code stolen from here https://github.com/mattifestation/PowerSploit
20
+ Get-ChildItem - Recurse $PSScriptRoot * .ps1 | Where-Object {($_.Name -ne ' Keylogger.ps1' -or $_.Name -ne ' Invoke-Prasadhak.ps1' -or $_.Name -ne ' Get-WebCredentials.ps1' )} | ForEach-Object {Import-Module $_.FullName - DisableNameChecking}
21
+ }
22
+ else
23
+ {
24
+ Get-ChildItem - Recurse $PSScriptRoot * .ps1 | Where-Object {($_.Name -ne ' Keylogger.ps1' )} | ForEach-Object {Import-Module $_.FullName - DisableNameChecking}
25
+ }
14
26
You can’t perform that action at this time.
0 commit comments