Skip to content

Instantly share code, notes, and snippets.

View roharon's full-sized avatar
🏠
Working from home

Aaron (Aron) Roh roharon

🏠
Working from home
View GitHub Profile
import yara
import os
import sys
import subprocess
import time
# compiled rule file
rule = yara.compile("./new_split_file_rules.yar")
rule.save("./compiled_split_file_rules.yar")
@roharon
roharon / private_ssh_key.yara
Created November 5, 2019 14:24
yara_time_spend.py
rule private_ssh_key
{
strings:
$re1 = /\\A.*_rsa\\z/
$re2 = /^.*_rsa$/
$re3 = /\\A.*_dsa\\z/
$re4 = /^.*_dsa$/
$re5 = /\\A.*_ed25519\\z/
@roharon
roharon / autorun.sh
Created July 16, 2019 11:07
autorun.sh
#!bin/bash
gcc -o mypcap main.c -lpcap
./mypcap
wget https://download.qt.io/official_releases/qtcreator/4.9/4.9.2/qt-creator-opensource-linux-x86_64-4.9.2.run
chmod +x qt-creator-opensource-linux-x86_64-4.9.2.run
./qt-creator-opensource-linux-x86_64-4.9.2.run
cd /opt/qtcreator-4.9.2/bin/
./qtcreator.sh
from time import sleep
import requests
import os
BUS_PATH = './bus_data/'
class crawl:
def __init__(self):
self.file_count = 0
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Watch temp</title>
</head>
<body>
<h1>
{% if ID %}
Your ID : {{ ID }}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Main Page</title>
</head>
<body>
<form action="/user" method="POST">
<p>
@roharon
roharon / app.py
Created July 15, 2018 06:23
app.py
from flask import Flask
from flask import render_template
from flask import request
import serial
app = Flask(__name__)
@app.route('/')
def Login():
return render_template('main.html')
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{ val }} times table</title>
</head>
<body>
<h1>
{{ val }} TABLE
from flask import Flask, request
from flask import render_template
app = Flask(__name__)
@app.route('/')
def hello_world():
return """
<form action='number' method=post>
<p><input type=number name=value>