This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
cd "$(dirname "$0")" | |
db_file="investigations.db" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
if [[ "${TRACE-0}" == "1" ]]; then | |
set -o xtrace | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Twitter (or what’s left of it — X) someimes gives headaches. | |
// I used the script of Isaac King at https://outsidetheasylum.blog/twitter-blocker/ at the beginning. | |
// But the HTTP 428 is a headache. At first I added some random latency one each and every 10th action. | |
// Then I blocked the queries to the bottlenecks like avatar loading API. | |
// Now, it is harder to get blocked by Twitter's rate limiting. | |
// Usage | |
// Pick the tweet you want to block th RTers. | |
// On the menu at the righthand side, click "View post engagements" | |
// Navigate to "Reposts" tab |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>CSV Table Viewer</title> | |
<style> | |
body { | |
background-color: #3e94ec; | |
font: 18px/28px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; | |
font-size: 16px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Since Wazuh File Integrity Monitoring (FIM) overlaps with some sysmon capabilities, it is better to fine-tune Sysmon configuration. | |
Another aspect would be to diable Wazuh FIM and rely on Sysmon. That is not covered here. | |
--> | |
<!-- | |
sysmon-config | A Sysmon configuration focused on default high-quality event tracing and easy customization by the community | |
Source version: 74 | Date: 2021-07-08 | |
Source project: https://github.com/SwiftOnSecurity/sysmon-config | |
Source license: Creative Commons Attribution 4.0 | You may privatize, fork, edit, teach, publish, or deploy for commercial use - with attribution in the text. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Since Wazuh File Integrity Monitoring (FIM) overlaps with some sysmon capabilities, it is better to fine-tune Sysmon configuration. | |
Another aspect would be to diable Wazuh FIM and rely on Sysmon. That is not covered here. | |
--> | |
<!-- NOTICE : This is a balanced generated output of Sysmon-modular with medium verbosity --> | |
<!-- due to the balanced nature of this configuration there will be potential blind spots --> | |
<!-- for more information go to https://github.com/olafhartong/sysmon-modular/wiki --> | |
<!-- --> | |
<!-- //** ***// --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Since Wazuh File Integrity Monitoring (FIM) overlaps with some sysmon capabilities, it is better to fine-tune Sysmon configuration. | |
Another aspect would be to diable Wazuh FIM and rely on Sysmon. That is not covered here. | |
--> | |
<!-- | |
sysmon-config | A Sysmon configuration focused on default high-quality event tracing and easy customization by the community | |
Source version: 74 | Date: 2021-07-08 | |
Source project: https://github.com/SwiftOnSecurity/sysmon-config | |
Source license: Creative Commons Attribution 4.0 | You may privatize, fork, edit, teach, publish, or deploy for commercial use - with attribution in the text. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-Content -Path (Join-Path -Path $env:TEMP -ChildPath 'PsReadlineTest.txt') -Value 'Hello, world!' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$environments = @([EnvironmentVariableTarget]::Machine, [EnvironmentVariableTarget]::User) | |
foreach ($e in $environments) | |
{ | |
$path = ([Environment]::GetEnvironmentVariable('Path', $e)).Split(';', [StringSplitOptions]::RemoveEmptyEntries) | |
$pathList = [System.Collections.Generic.List[string]]::new() | |
foreach ($p in $path) | |
{ | |
if(Test-Path -Path $p) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -RunAsAdministrator | |
<# | |
.Synopsis | |
Generates Sysmon Archive file quota for `File Delete` events to help managing the size. | |
.DESCRIPTION | |
Based on: https://blog.nviso.eu/2022/06/30/enforcing-a-sysmon-archive-quota/ | |
.INPUTS | |
None. Cmdlet does not accept pipe values. | |
.OUTPUTS |
NewerOlder