Skip to content

Instantly share code, notes, and snippets.

@1njected
1njected / systemshell.cpp
Created March 22, 2024 16:59
SYSTEM shell on user desktop
// Rum as SYSTEM, spawns UI in user desktop
// Adjusted to work with WS2022
// origin:https://gist.github.com/masthoon/6f81e466d458ff8056d76266b90d2b5e
#include "pch.h"
#include <windows.h>
#include <Winbase.h>
#include <Wtsapi32.h>
#include <Userenv.h>
#include <malloc.h>
# Initialize an empty array
$array = @()
# Add letters 'a' to 'z'
for ($i = [int][char]'a'; $i -le [int][char]'z'; $i++) {
$array += [char]$i
}
# Add numbers '10' to '99'
for ($number = 10; $number -le 99; $number++) {
import React, { useState, useEffect } from 'react';
import { Link, useLocation, useNavigate } from 'react-router-dom';
import { Button, Table } from 'reactstrap';
import { Translate, getSortState } from 'react-jhipster';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faSort, faSortUp, faSortDown } from '@fortawesome/free-solid-svg-icons';
import { ASC, DESC, SORT } from 'app/shared/util/pagination.constants';
import { overrideSortStateWithQueryParams } from 'app/shared/util/entity-utils';
import { useAppDispatch, useAppSelector } from 'app/config/store';

Keybase proof

I hereby claim:

  • I am 1njected on github.
  • I am 1njected (https://keybase.io/1njected) on keybase.
  • I have a public key ASACZ30J96gXnkgxCpuck86pVIJ4Jlbn8b5q7pR5I7j9MQo

To claim this, I am signing this object:

Fast track to ELK + pfSense 2.2
1. Run this script to install components on Ubuntu 14.04:
https://github.com/spcampbell/elk-ubuntu-setup
Script is based on this guide:
https://www.digitalocean.com/community/tutorials/how-to-use-logstash-and-kibana-to-centralize-and-visualize-logs-on-ubuntu-14-04
2. Configure ELK using this guide, start at "Configure Logstash":
@1njected
1njected / gist:10419549
Created April 10, 2014 20:22
#heartbleed FreeBSD 10 leak private key
Connecting...
Sending Client Hello...
Waiting for Server Hello...
... received message: type = 22, ver = 0302, length = 66
... received message: type = 22, ver = 0302, length = 1445
... received message: type = 22, ver = 0302, length = 587
... received message: type = 22, ver = 0302, length = 4
Sending heartbeat request...
... received message: type = 24, ver = 0302, length = 16384
Received heartbeat response:
@1njected
1njected / gist:10414736
Created April 10, 2014 19:29
hb_fbsd10
Connecting...
Sending Client Hello...
Waiting for Server Hello...
... received message: type = 22, ver = 0302, length = 66
... received message: type = 22, ver = 0302, length = 913
... received message: type = 22, ver = 0302, length = 331
... received message: type = 22, ver = 0302, length = 4
Sending heartbeat request...
... received message: type = 24, ver = 0302, length = 16384
Received heartbeat response: