Lecture 1: Introduction to Research — [📝Lecture Notebooks] [
Lecture 2: Introduction to Python — [📝Lecture Notebooks] [
Lecture 3: Introduction to NumPy — [📝Lecture Notebooks] [
Lecture 4: Introduction to pandas — [📝Lecture Notebooks] [
Lecture 5: Plotting Data — [📝Lecture Notebooks] [[
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
| #!/bin/bash | |
| # Default flag values | |
| VERBOSE=false | |
| WHAT_IF=false | |
| # Parse flags and arguments | |
| ARGS=() | |
| while [[ $# -gt 0 ]]; do | |
| case "$1" in |
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
| #!/bin/bash | |
| # Default flag values | |
| VERBOSE=false | |
| WHAT_IF=false | |
| # Parse flags and arguments | |
| ARGS=() | |
| while [[ $# -gt 0 ]]; do | |
| case "$1" in |
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 python2 | |
| ''' | |
| Dump some PE file features from memory images. | |
| author: Willi Ballenthin | |
| email: william.ballenthin@fireeye.com | |
| website: https://gist.github.com/williballenthin/cbc102d561e2eb647f7aec3c3753ba55 | |
| ''' | |
| import os | |
| import sys |
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
| ' ASR rules bypass creating child processes | |
| ' https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-exploit-guard/enable-attack-surface-reduction | |
| ' https://www.darkoperator.com/blog/2017/11/11/windows-defender-exploit-guard-asr-rules-for-office | |
| ' https://www.darkoperator.com/blog/2017/11/6/windows-defender-exploit-guard-asr-vbscriptjs-rule | |
| Sub ASR_blocked() | |
| Dim WSHShell As Object | |
| Set WSHShell = CreateObject("Wscript.Shell") | |
| WSHShell.Run "cmd.exe" | |
| End Sub |
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
| [CmdletBinding()] | |
| Param( | |
| [Parameter(Mandatory=$False,Position=0)] | |
| [String]$TargetHostname, | |
| [Parameter(Mandatory=$False,Position=1)] | |
| [String]$HashAlgorithm | |
| ) | |
| ## We will handle errors via Try/Catch | |
| $ErrorActionPreference = 'Stop' |
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
| function Get-ClrReflection | |
| { | |
| <# | |
| .SYNOPSIS | |
| Detects memory-only CLR (.NET) modules | |
| Author: Joe Desimone (@dez_) | |
| License: BSD 3-Clause | |
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
| function ConvertTo-DelimiterSeparatedValues { | |
| <# | |
| This function is like ConverTo-CSV but with | |
| support for multi-character delimiters. The | |
| function will return noteproperty names as | |
| a header row. | |
| #> | |
| param( | |
| [Parameter(Mandatory=$True,ValueFromPipeLine=$True,Position=0)] | |
| [pscustomobject[]]$arrObject, |
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
| I've been playing around with Matasano Crypto Challenges for my own edification. | |
| It's been fun and insightful. I've learned a number of new things and enjoyed | |
| doing so. If you're a mediocre programmer like me and have an interest in crypto, | |
| I highly recommend checking out the challenges -- http://cryptopals.com/. | |
| A few of the exercises in set 1 have you playing around with XOR for encryption. | |
| You create a script that can brute force single key decryption and if you're | |
| ambitious you'll write a function that will examine letter frequencies of the | |
| output and score the results, returning the one that is most likely to be | |
| English. I wrote multiple scoring functions for this, one that counts English |
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
| <# | |
| .SYNOPSIS | |
| XOR-Encrypt.ps1 takes a string of text to be encrypted and a key. Each | |
| byte of the input string will be XOR'd with a byte from the key. If | |
| the key is not as long as the input string, the key will repeat. | |
| .PARAMETER String | |
| A required parameter, the string to be encoded. | |
| .PARAMETER key | |
| A required parameter, the key that the string will be XOR'd with. | |
| .EXAMPLE |
NewerOlder