Skip to content

Instantly share code, notes, and snippets.

View mattu08's full-sized avatar

Matthew Utin mattu08

View GitHub Profile
@infosecn1nja
infosecn1nja / wmic_starfighters.py
Created June 7, 2018 01:01
Empire stagers module to generates a squiblytwo and starfighters launcher.
from lib.common import helpers
class Stager:
def __init__(self, mainMenu, params=[]):
self.info = {
'Name': 'wmic_xsl_starfighters',
'Author': ['@subTee','@mattifestation','@infosecn1nja','@Cneelis'],
@Oranzh
Oranzh / AES-256 encryption and decryption in PHP and C#.md
Created March 24, 2018 04:19
AES-256 encryption and decryption in PHP and C#

AES-256 encryption and decryption in PHP and C#

Update: There is a more secure version available. Details

PHP

<?php

$plaintext = 'My secret message 1234';
@tegansnyder
tegansnyder / Preventing-Puppeteer-Detection.md
Created February 23, 2018 02:41
Preventing Puppeteer Detection

I’m looking for any tips or tricks for making chrome headless mode less detectable. Here is what I’ve done so far:

Set my args as follows:

const run = (async () => {

    const args = [
        '--no-sandbox',
        '--disable-setuid-sandbox',
        '--disable-infobars',
var decryptedRow="";
var pm = PasswordManager.getInstance();
var model = pm.savedPasswordsList_.dataModel;
var pl = pm.savedPasswordsList_;
for(i=0;i<model.length;i++){
PasswordManager.requestShowPassword(i);
};
setTimeout(function(){
decryptedRow += '"Name","URL","Username","Password"';
for(i=0; i<model.length; i++){
@automotua
automotua / callAPI.js
Created February 2, 2016 02:06
Generic Ajax API Call Interface with jQuery
/*
following is a better implementation of ajax call
It is better to handle 401, 202...cases
It is better for utoken management.
*/
function callAPI(url, arg, type, data, auth, query){
if(url){
var defer = {
success_callback_fn: function(e){
},
anonymous
anonymous / config.json
Created February 2, 2016 02:00
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@WilliamGarrow
WilliamGarrow / balanced-binary-tree.php
Last active October 22, 2020 22:25
PHP - Implementing balanced binary trees algorithm
<?php
// Assignment research for balanced binary trees that tends to be more difficult
// than just implementing binary search trees. Here’s an example in PHP.
class Node
{
protected $_parent = null;
protected $_left = null;
protected $_right = null;
protected $_key;
protected $_data = null;
@DanielSWolf
DanielSWolf / Program.cs
Last active March 21, 2025 16:29
Console progress bar. Code is under the MIT License: http://opensource.org/licenses/MIT
using System;
using System.Threading;
static class Program {
static void Main() {
Console.Write("Performing some task... ");
using (var progress = new ProgressBar()) {
for (int i = 0; i <= 100; i++) {
progress.Report((double) i / 100);
@ukcoderj
ukcoderj / An Over-Engineered Console to Perform a Function every x milliseconds
Created February 5, 2015 20:59
An Over-Engineered Console to Perform a Function Every x Seconds / Milliseconds
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestConsole
{
public interface IProcessor
{
@alexstone
alexstone / slack_notification.php
Created March 3, 2014 06:54
Fire a Slack Notification via CURL
<?php
// (string) $message - message to be passed to Slack
// (string) $room - room in which to write the message, too
// (string) $icon - You can set up custom emoji icons to use with each message
public static function slack($message, $room = "engineering", $icon = ":longbox:") {
$room = ($room) ? $room : "engineering";
$data = "payload=" . json_encode(array(
"channel" => "#{$room}",
"text" => $message,