Skip to content

Instantly share code, notes, and snippets.

@nicdev
nicdev / gist:7282303
Last active December 27, 2015 06:29
Some nmap scans I need to keep notes for
# Discover live hosts on a subnet
# nmap -sP -PE -PP -n [subnet in CIDR notation]
nmap -sP -PE -PP -n 192.168.1.0/24
# Scan for installed software and versions
# nmap -sV --version-all [CIDR or IP]
nmap -sV --version-all 192.168.1.0/24
@nicdev
nicdev / gulpfile.js
Created July 31, 2015 13:55
Clonr Gulpfile
var gulp = require('gulp');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var imagemin = require('gulp-imagemin');
var php = require('gulp-connect-php');
var browserSync = require('browser-sync');
var jshint = require('gulp-jshint');
var reload = function() {
@nicdev
nicdev / save-the-cover.md
Last active September 10, 2015 18:21
#savethecover

You may have seen this cover before. It's been featured in our own site, as well as top industry publications

This cover tells a story of conferences, trips, hackathons, tech, and frienship. Unfortunately, by the end of tomorrow, all the the stickers must go. That is unless you want to carry on with this 352 institution. You've seen this cover and wondered, "I'd love to have that cover." Now it's your opportunity!

"How are we going to pull this off?" First, you need to have a computer that we can trade for. Second, we need to get @ecunningham's blessing. Lastly, I blow away my machine, then you put all your stuff in it.

@nicdev
nicdev / gulpfile.js
Last active October 1, 2015 16:12
Super minimal PHP-only Gulpfile for local development
// If you need something that does sass, sourcemaps, images optimization, etc.
// go to https://gist.github.com/nicdev/79b0c686be0962a58b09
// this right here does PHP, and PHP only
var gulp = require('gulp');
var browserSync = require('browser-sync');
var php = require('gulp-connect-php');
var reload = function() {
setTimeout(browserSync.reload, 500);
}
@nicdev
nicdev / update-myisam-to-innodb.php
Last active September 27, 2017 21:34
Update MyISAM tables to InnoDB
<?php
$settings = [
'host' => '',
'username' => '',
'password' => ''
];
$db = new mysqli($settings['host'], $settings['username'], $settings['password']);
@nicdev
nicdev / collections.json
Last active September 14, 2018 13:49
[RFI] GET /collections
[
{
"id": "public",
"title": "XFE Public Collections",
"can_read": true,
"can_write": false,
"media_types": [
"application/vnd.oasis.stix+json; version=2.0"
]
},
@nicdev
nicdev / collection.json
Created September 14, 2018 13:51
[RFI] GET /collections/{collection_id}
{
"id": "5ed3139c-65f6-2849-cbcc-52e3c22ca2b4",
"title": "Cryptocurrency Miner Distributed via PHP Weathermap Vulnerability, Targets Linux Servers",
"description": "Advisory Type,\n\n,\n\t,Cryptocurrency Mining Campaign,\n,\n\n,Overview,\n\n,TrendMicro reported on a cryptocurrency mining campaign targeting Linux servers. This campaign is currently active and affects multiple countries, primarily Japan, Taiwan, China , U.S., and India. The final payload is a modified XMRig miner. “XMRig is a legitimate, open-source XMR miner with multiple updated versions that supports both 32-bit and 64-bit Windows and Linux operating systems.” This campaign takes advantage of ,CVE-2013-2618, (exploit publicly available), which affects the Cacti's Network Weathermap plug-in. A patch that mitigates this vulnerability has been available for approximately 5 years. Cacti's Network Weathermap provides system administrators insight on the network activity. Cacti doesn't regularly report vulnerabilities affecting their p
@nicdev
nicdev / objects.json
Created September 14, 2018 13:53
[RFI] GET /collections/{collection_id}/objects
{
"spec_version": "2.0",
"type": "bundle",
"objects": [
{
"id": "indicator--2633e712-b12f-9803-f9e7-21b654dfcea8",
"type": "indicator",
"created": "2018-09-14T13:52:14.743Z",
"modified": "2018-09-14T13:52:14.743Z",
"labels": [
@nicdev
nicdev / object.json
Created September 14, 2018 13:54
[RFI] GET /collection/{collection_id}/objects/{object_id}
{
"spec_version": "2.0",
"type": "bundle",
"objects": [
{
"id": "indicator--2633e712-b12f-9803-f9e7-21b654dfcea8",
"type": "indicator",
"created": "2018-09-14T13:53:39.869Z",
"modified": "2018-09-14T13:53:39.869Z",
"labels": [
@nicdev
nicdev / gist:119c5939ff84db5ee95c453f3345394b
Created September 14, 2018 13:55
[RFI] GET /healthcheck
{
"status": "bad",
"components": [
{
"name": "downstream services",
"status": "good",
"details": ""
},
{
"name": "cpu",