Skip to content
/ DropNet Public

A tool that can be used to close network connections automatically with a given parameters

License

Notifications You must be signed in to change notification settings

g3rzi/DropNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

License

I created this tool as a small research I did on dropping process network connections. You can read more about this research here.

Invoke-DropNet

Show all the TCP connections and allows you to close any network connection each time it is being established based on a given parameters.

alt text

Requirements

Admin privileges to close the network connection. Otherwise it will also be able to show you the connections status.

Basic Usage

  • Open PowerShell and run:
    • Import-Module .\Invoke-Dropnet.ps1 or copy & paste KetshashInvoke-DropNet.ps1 content to PowerShell session
    • Invoke-DropNet <arguments>

Invoke-DropNet

Parameters:
  • AutoClose - Will loop over the connections until exiting and close them.
  • Milliseconds - How much time to wait before running again on all the connections (default: 300 milliseconds).
  • ProcessID - Filter connections by PID of the process.
  • LocalPort - Filter connections by PID of the process.
  • RemotePor - Filter connections by RemotePort.
  • LocalIPAddress - Filter connections by LocalIPAddress.
  • RemoteIPAddress - Filter connections by RemoteIPAddress.
  • State - Filter connections by State.
Example:
Invoke-DropNet -AutoClose -LocalPort 6666 -State "ESTABLISHED"

About

A tool that can be used to close network connections automatically with a given parameters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published