• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

Source Code Set Honeypot - PowerShell

dEEpEst

☣☣ In The Depths ☣☣
Staff member
Administrator
Super Moderator
Hacker
Specter
Crawler
Shadow
Joined
Mar 29, 2018
Messages
13,860
Solutions
4
Reputation
27
Reaction score
45,546
Points
1,813
Credits
55,340
‎7 Years of Service‎
 
56%
Monitors a specified file or folder for one or more designated file system events and executes a custom action each time an event occurs

Syntax
Code:
# Example 1: Basic usage with default settings (monitoring changes)
Set-HoneyPot -FilePath "C:\temp\file.txt"
# Example 2: Monitor for multiple events (Created and Deleted)
Set-HoneyPot -FilePath "C:\temp\file.txt" -Events 'Created', 'Deleted'
# Example 3: Monitor for the "Changed" event with a custom action that writes a custom message
Set-HoneyPot -FilePath "C:\temp\file.txt" -Events 'Changed' -Action {
    Write-Host "Custom Action: File $($Event.SourceEventArgs.FullPath) was $($Event.SourceEventArgs.ChangeType)"
}
# Example 4: Monitor for Created, Changed, and Deleted events and run continuously
Set-HoneyPot -FilePath "C:\temp\file.txt" -Events 'Created', 'Changed', 'Deleted' -RunForever
# Example 5: Monitor a folder (without subdirectories) for changes
Set-HoneyPot -FilePath "C:\temp\example.txt" -IncludeSubdirectories $false

Script
 
Back
Top