Skip to content

Instantly share code, notes, and snippets.

View dcgithub's full-sized avatar
💭
for those about to rock!..

dcgithub

💭
for those about to rock!..
  • None
  • Brisbane
View GitHub Profile
@lowleveldesign
lowleveldesign / Show-File.ps1
Created October 27, 2022 08:01
A script coloring the content of a binary file
param (
[Parameter(Position = 1, Mandatory = $True)]
[ValidateScript({ Test-Path $_ })]
[String]$Path,
[Int64]$Offset = 0
)
$ErrorActionPreference = "Stop"
$Colors = @(
strComputer = "."
Dim objShell, objWMIService
Set objShell = WScript.CreateObject("WScript.Shell")
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Dim colItems, NumS, MemorySize, CPU1, CPU2, ProcessId, strProcess, strProcessKill, MemorySize1, MemorySize2, AverageCPU
Wscript.Sleep 10000
strProcessKill = "'TASKMGR.EXE'"
Set colItems = objWMIService.ExecQuery("Select * From Win32_Process Where Name = " & strProcessKill)
@mrdoob
mrdoob / WebAudio.js
Last active February 14, 2024 05:02
HTMLAudioElement polyfill using the WebAudio API with seamless loop support in Safari.
/**
* @author mrdoob / http://mrdoob.com/
*/
function WebAudio( context ) {
if ( context === undefined ) {
context = WebAudio.context;
@hirman74
hirman74 / pfiles_netstat.html
Last active September 13, 2023 04:39
HTML application page to assist in generating "pfiles" command and extract the info for "netstat" count of relevant open session to external host.
<!DOCTYPE html>
<head>
<title>pfiles process port finder</title>
<!--<meta http-equiv="x-ua-compatible" content="ie=11"/>-->
<!--<meta http-equiv="x-ua-compatible" content="ie=edge" />-->
<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta charset="UTF-8">
@teixeira0xfffff
teixeira0xfffff / search_engines.csv
Last active March 1, 2024 20:51
Cybersecurity search engines for researchers [source https://twitter.com/danielmakelley/status/1570910911078207488]
Name URL Description
Dehashed https://www.dehashed.com/ View leaked credentials
SecurityTrails https://securitytrails.com/ Extensive DNS data
DorkSearch—Really https://dorksearch.com/ Really fast Google dorking
ExploitDB https://www.exploit-db.com/ Archive of various exploits
ZoomEye https://www.zoomeye.org/project?id=firewall Gather information about targets
Pulsedive—Search https://pulsedive.com/ Search for threat intelligence
GrayHatWarefare https://buckets.grayhatwarfare.com/ Search public S3 buckets
PolySwarm https://polyswarm.io/ Scan files and URLs for threats
Fofa https://github.com/wgpsec/fofa_viewer Search for various threat intelligence
adorable
adventurous
aggressive
agreeable
alert
alive
amused
angry
annoyed
annoying
"Top 1000 values of process.executable","Top 1000 values of process.command_line","Top 1000 values of process.working_directory","Count of records"
"C:\Windows\System32\rundll32.exe","""C:\Windows\System32\rundll32.exe"" Shell32.dll,ShellExec_RunDLL ""RÊCYCLÊR\  .com"" ""Program Files (x86)""","C:\Users\user\Desktop\",6
"C:\Windows\System32\rundll32.exe","""C:\Windows\System32\rundll32.exe"" Shell32.dll,ShellExec_RunDLL ""RÊCYCLÊR\  .com"" ""Windows""","C:\Users\user\Desktop\",8
"C:\Windows\System32\rundll32.exe","""C:\Windows\System32\rundll32.exe"" Shell32.dll,ShellExec_RunDLL ""RÊCYCLÊR\  .com"" ""ProgramData""","C:\Users\user\Desktop\",6
"C:\Windows\System32\rundll32.exe","""C:\Windows\System32\rundll32.exe"" Shell32.dll,ShellExec_RunDLL ""RÊCYCLÊR\  .com"" ""Recovery""","C:\Users\user\Desktop\",7
"C:\Windows\System32\rundll32.exe","""C:\Windows\System32\rundll32.exe"" Shell32.dll,ShellExec_RunDLL ""RÊCYCLÊR\  .com"" ""Documents and Settings""","C:\Users\user\Desktop\",11
"C:\Windows\System32\rundll32.exe
@GHolk
GHolk / jscript-with-excel-ajax-fso.js
Last active October 13, 2022 00:46
A jscript use excel object model api, activex xmlhttp and filesystem object.
/* License under GPLv3 by gholk
*
* share for reference if anyone need to deal with excel object model in jscript/vbscript and other stuff.
*/
// import JSON
// # lookup code
var debugFlag = ''
@rkttu
rkttu / Microsoft.PowerShell_profile.ps1
Last active June 6, 2023 09:18
PowerShell 7 Profile Code for macOS
# Apply this code to the path pointed to by the $PROFILE variable.
# Introduction
# This code includes asdf and oh-my-posh support in addition to brew.
# Requirements
# You must have the latest version of the PSReadLine module installed. Use the Install-Module -Name PSReadLine -AllowClobber -Force command.
# Also, you need to go to Nerd Font (https://www.nerdfonts.com/) and change the font to display the oh-my-posh prompt normally.
# Troubleshooting
#-------------------------------------------------------------#
#----Initial Declarations-------------------------------------#
#-------------------------------------------------------------#
Add-Type -AssemblyName PresentationCore, PresentationFramework, System.Windows.Forms
$Xaml = @"
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Width="900" Height="500">
<Grid>
<Grid.ColumnDefinitions>