Skip to content

Instantly share code, notes, and snippets.

View DavidHoenisch's full-sized avatar

Mockingjay DavidHoenisch

View GitHub Profile
@DavidHoenisch
DavidHoenisch / Scraping words from a URL.md
Created June 28, 2023 16:54
Scraping words from a URL.md

The following code is for scraping content from websites and extracting just the words. This is useful for being able to feed web content into other processes.

This can be accomplished in a three step process.

  1. Get the raw html content using the requests library
  2. Feed the .text results of step one into the BeautifulSoup and extract the text with .get_text(). This will strip all the html from the content and return and unstructured string.
  3. The string that is returned will need some heavy sanitization.
    1. Strip the blank lines with a python filter
    lines = filter(lambda x: x.strip(), text.splitlines())
@DavidHoenisch
DavidHoenisch / enable-logging.ps1
Created January 24, 2023 16:41
All the logging for windows. Generated to what2log.com
auditpol /set /subcategory:"computer account management" /Success:Enable /Failure:Enable
auditpol /set /subcategory:"computer account management" /Success:Enable /Failure:Enable
auditpol /set /subcategory:"computer account management" /Success:Enable /Failure:Enable
auditpol /set /subcategory:"audit policy change" /Success:Enable /Failure:Enable
auditpol /set /subcategory:"logon" /Success:Enable /Failure:Enable
@DavidHoenisch
DavidHoenisch / swiftonsecurity-sysmon-config.ps1
Last active January 25, 2023 23:17
Configure powershell with swiftonsecurity's sysmon config. Assumes that your install paths match. Modifiy as needed.
$source = 'https://raw.githubusercontent.com/Neo23x0/sysmon-config/master/sysmonconfig-export.xml'
$destination = 'C:\Program Files\Sysmon\Sysmon\sysmonconfig-export.xml'
Invoke-WebRequest -Uri $source -OutFile $destination
'C:\Program Files\Sysmon\Sysmon\Sysmon.exe -c .\sysmonconfig-export.xml'
#!/bin/bash
if [[ $UID -ne 0 ]]; then
echo "Please run with sudo"
exit 1
fi
## check what distrobution of linux is being run. Supported versions are CentOS, debian, Ubuntu, Amazon Linux
if [ -f /etc/redhat-release ]; then
@DavidHoenisch
DavidHoenisch / MVT_IOS_HELPFUL_COMMANDS.md
Created October 7, 2022 01:58
MVT_IOS Helpful Commands
Use Command
Mount iOS phone to docker docker run -it --privileged -v /dev/bus/usb:/dev/bus/usb -v /var/run/usbmuxd:/var/run/usbmuxd mvt 
Get info on iOS device ideviceinfo
Create iOS backup idevicebackup2 --full [path/to/backup/folder]
Get the latest IoC’s mvt-ios download-iocs
Decrypt the backup MVT_IOS_BACKUP_PASSWORD="mypassword" mvt-ios decrypt-backup -d /path/to/decrypted /path/to/backup
@DavidHoenisch
DavidHoenisch / Helpful commands.md
Created October 7, 2022 01:51
MVT-ANDROID Helpful commands
Use Command
Mount iOS phone to docker docker run -it --privileged -v /dev/bus/usb:/dev/bus/usb -v /var/run/usbmuxd:/var/run/usbmuxd mvt 
Get info on iOS device ideviceinfo
Create iOS backup idevicebackup2 --full [path/to/backup/folder]
Get the latest IoC’s mvt-ios download-iocs
Decrypt the backup MVT_IOS_BACKUP_PASSWORD="mypassword" mvt-ios decrypt-backup -d /path/to/decrypted /path/to/backup
@DavidHoenisch
DavidHoenisch / time-series-data-projection.ipynb
Last active September 1, 2022 23:30
time-series-data-projection.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am davidhoenisch on github.
  • I am mockingjay (https://keybase.io/mockingjay) on keybase.
  • I have a public key ASB1LpAyCYpqSvGY18AbFv4X7yOQNZ5Z81480Dn8_be9Vgo

To claim this, I am signing this object: