• Stars
    star
    112
  • Rank 302,576 (Top 7 %)
  • Language
    PowerShell
  • License
    BSD 3-Clause "New...
  • Created over 10 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

PowerShell Module to interact with VirusTotal

Posh-VirusTotal

PowerShell V3.0 or higher module for interacting with the VirtusTotal service to analize suspicious files and URLs using either the Public or Private Version 2 API provided by VirusTotal.

Cmdlets Available

Cmdlet Synopsis
Get-PoshVTVersion Checks the version of the module installed versus the version on GitHub
Get-VTAPIKeyInfo Get information on the Virus Total API key.
Get-VTDomainReport Get a VirusTotal Report for a given Domain
Get-VTFileBehaviourReport Get a report about the behavior of the file when executed in a sandboxed environment.
Get-VTFileComment Retrieve a list of VirusTotal Community comments for a given file or URL
Get-VTFileNetworkTraffic Get a dump of the network traffic generated by the file when executed.
Get-VTFileReport Get a VirusTotal Report for a given File
Get-VTFileSample Download a file by its hash.
Get-VTFileScanReport Get the scan results for a file.
Get-VTIPReport Get a VirusTotal Report for a given IPv4 Address
Get-VTSpecialURL Get a special URL to upload files bigger than 32MB in size.
Get-VTURLReport Get a VirusTotal Report for a given URL
Remove-VTFileRescan Delete a previously scheduled scan.
Search-VTAdvancedReversed Search for samples that match certain binary/metadata/detection criteria.
Set-VTAPIKey Sets the VirusTotal API Key as a Global Variable
Set-VTFileComment Post a comment on a file or URL.
Set-VTFileRescan Rescan a previously submitted file or schedule a scan to be performed in the future.
Submit-VTFile Submit a File for scanning by VirusTotal
Submit-VTURL Submit a URL for scanning by VirusTotal

#Install To install the module including all source code you can just run in a PowerShell v3 or higher session the following command:

iex (New-Object Net.WebClient).DownloadString("https://gist.githubusercontent.com/darkoperator/9138373/raw/22fb97c07a21139a398c2a3d6ca7e3e710e476bc/PoshVTInstall.ps1")

The process should look like:

PS C:\Windows\system32> iex (New-Object Net.WebClient).DownloadString("https://gist.githubusercontent.com/darkoperator/9
138373/raw/22fb97c07a21139a398c2a3d6ca7e3e710e476bc/PoshVTInstall.ps1")
Downloading latest version of Posh-VirusTotal from https://github.com/darkoperator/Posh-VirusTotal/archive/master.zip
File saved to C:\Users\Carlos\AppData\Local\Temp\Posh-VirusTotal.zip
Uncompressing the Zip file to C:\Users\Carlos\Documents\WindowsPowerShell\Modules
Renaming folder
Module has been installed

CommandType     Name                                               ModuleName
-----------     ----                                               ----------
Function        Get-PoshVTVersion                                  Posh-VirusTotal
Function        Get-VTAPIKeyInfo                                   Posh-VirusTotal
Function        Get-VTDomainReport                                 Posh-VirusTotal
Function        Get-VTFileBehaviourReport                          Posh-VirusTotal
Function        Get-VTFileComment                                  Posh-VirusTotal
Function        Get-VTFileNetworkTraffic                           Posh-VirusTotal
Function        Get-VTFileReport                                   Posh-VirusTotal
Function        Get-VTFileSample                                   Posh-VirusTotal
Function        Get-VTFileScanReport                               Posh-VirusTotal
Function        Get-VTIPReport                                     Posh-VirusTotal
Function        Get-VTSpecialURL                                   Posh-VirusTotal
Function        Get-VTURLReport                                    Posh-VirusTotal
Function        Remove-VTFileRescan                                Posh-VirusTotal
Function        Search-VTAdvancedReversed                          Posh-VirusTotal
Function        Set-VTAPIKey                                       Posh-VirusTotal
Function        Set-VTFileComment                                  Posh-VirusTotal
Function        Set-VTFileRescan                                   Posh-VirusTotal
Function        Submit-VTFile                                      Posh-VirusTotal
Function        Submit-VTURL                                       Posh-VirusTotal

Change Log

Version 1.2

  • API key is now encrypted on disk when set.
  • Module in Synopsis mention if they are using Private or Public API.

Version 1.1

  • Added support for connecting thru a HTTP Proxy and provide credentials for the proxy if necessary.
  • Certificate pinning using the Certificate Thumbprint.

Version 1.0

  • First public version of the module supporting PowerShell v3.0 and v4.0

More Repositories

1

dnsrecon

DNS Enumeration Script
Python
2,483
star
2

Posh-SSH

PowerShell Module for automating tasks on remote systems using SSH
C#
952
star
3

Posh-SecMod

PowerShell Module with Security cmdlets for security work
PowerShell
430
star
4

Metasploit-Plugins

Plugins for Metasploit Framework
Ruby
413
star
5

powershell_scripts

Powershell Scripts
PowerShell
216
star
6

Posh-Sysmon

PowerShell module for creating and managing Sysinternals Sysmon config files.
PowerShell
207
star
7

Meterpreter-Scripts

Meterpreter Scripts that I'm working on
Ruby
173
star
8

Posh-Shodan

PowerShell Module to interact with the Shodan service
PowerShell
129
star
9

vscode-language-aggressor

Cobalt Strike Aggressor extension for Visual Studio Code
121
star
10

DEFCON25_PS_Workshop

Materials of Workshop presented at DEFCON 25
PowerShell
108
star
11

vscode-sysmon

Visual Studio Code Microsoft Sysinternal Sysmon configuration file extension.
TypeScript
50
star
12

ADAudit

Windows PowerShell module to help in the auditing of Active Directory environments.
47
star
13

SysmonLinux.Util

PowerShell Module for parsing logs generated by Sysinternals Sysmon for Linux
PowerShell
36
star
14

Presentations

Presentation Slides
27
star
15

pyforensics

Collection of single use scripts I worte for windows forensics
Python
27
star
16

Nessus-Bridge-for-Metasploit

nessus plugin for metasploit to connect to a nessus server
Ruby
21
star
17

Posh-Metasploit

PowerShell module to automate via XMLRPC a remote Metasploit server.
PowerShell
15
star
18

Posh-Tweet

PowerShell Module for intearcting with Twitter
PowerShell
14
star
19

MDNSRecon

Script for Ubuntu/BackTrack for MSDN Enumeration using Avahi-Utils
Ruby
11
star
20

EventHunt

PowerShell
9
star
21

Posh-OpenPGP

PowerShell Module for automating actions using OpenPGP
PowerShell
9
star
22

Agressor-Scripts

C#
7
star
23

Nessus-V2-Parser

Parser for .nessus v2 xml files to various formats.
Ruby
6
star
24

Posh-NVS

PowerShell Module for the Nessus Vulnerability Scanner
PowerShell
5
star
25

GetAuditPol

Example of getting audit policy using C++
C++
5
star
26

OctoPS

PowerShell Core module for automating tasks against the OctoPrint API.
PowerShell
5
star
27

VI-ToolBox

Collection of PowerCLI functions in module format that I use in my day to day operations of a VMware Infrastructure
PowerShell
4
star
28

IPHelper

C# example for building a PowerShell module
C#
3
star