Skip to content

Instantly share code, notes, and snippets.

@jobscry
jobscry / s1_software_report.py
Last active October 29, 2020 21:43
Sentinel One API Pull Software Report into CSV
#! python3
import argparse
import csv
import time
import requests
HEADERS = {
"Accept": "application/json",
@jobscry
jobscry / s1_agent_passphrases_csv.py
Last active November 25, 2023 01:04
sentinel one API pull agentpassphrases to CSV
#! python3
import argparse
import csv
import requests
HEADERS = {
"Accept": "application/json",
"User-Agent": "vz/s1_agent_passphrases_v1.0",
### Keybase proof
I hereby claim:
* I am jobscry on github.
* I am joevasquez (https://keybase.io/joevasquez) on keybase.
* I have a public key whose fingerprint is 94B7 15A2 8D01 D4AA 6BAE F1A6 B59B CBAD FBAD 106A
To claim this, I am signing this object:
@jobscry
jobscry / gist:eff8384e751f657c955d
Last active August 29, 2015 14:16
email table
CREATE TABLE IF NOT EXISTS emails(
id INTEGER PRIMARY KEY,
email VARCHAR(255) UNIQUE,
dumps VARCHAR(255),
count INTEGER DEFAULT 1,
fb INTEGER DEFAULT 0,
twitter INTEGER DEFAULT 0,
sex INTEGER DEFAULT 0,
location INTEGER DEFAULT 0,
tw_updates INTEGER DEFAULT 0
@jobscry
jobscry / bill.sh
Last active December 31, 2015 14:18
#!/bin/bash
choice=0
error1=" "
while true; do
clear
echo " Author: Bill Allen Menu 0"
echo
echo
echo "Current Directory: " $(pwd)
#!/usr/bin/env python
"""
Hello Detector
Joe Vasquez <joe.vasquez@gmail.com>
For CYB5280, check supplied COM files for polymorphic
Hello World virus.
"""
/**
* Hello Generator
*
* Joe Vasquez <joe.vasquez@gmail.com>
*
* I wish I knew more assembly!
**/
#include <fstream>
#include <iostream>
$(function(){
$('#content').scrollPagination({
'contentPage': 'democontent.html', // the url you are fetching the results
'contentData': {}, // these are the variables you can pass to the request, for example: children().size() to know which page you are
'scrollTarget': $(window), // who gonna scroll? in this example, the full window
'heightOffset': 10, // it gonna request when scroll is 10 pixels before the page ends
'beforeLoad': function(){ // before load function, you can display a preloader div
$('#loading').fadeIn();
},
'afterLoad': function(elementsLoaded){ // after loading content, you can use this function to animate your new elements
//Status.java
package util;
import java.util.ArrayList;
import java.util.Iterator;
public class Status {
//The list of Exception objects
private ArrayList exceptions;
public Status() {exceptions=new ArrayList();}
public boolean isSuccessful() {return (exceptions.size()==0);}
public void addException(Exception ex) {exceptions.add(ex);}
//Course.java
//This domain object represents a course. The data attributes are
//all package-private to allow access to them in the CourseService class.
package domain;
public class Course implements java.io.Serializable {
int objectID;
String semester;
String number;
String title;
//The default constructor is public to be accessible from JSP View pages.