Skip to content

Instantly share code, notes, and snippets.

💭
Cuckoo Sandbox for identify Malware

ryanbekabe

💭
Cuckoo Sandbox for identify Malware
Block or report user

Report or block ryanbekabe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ryanbekabe
ryanbekabe / client.py
Created Jul 3, 2019 — forked from yoavram/client.py
Example of uploading binary files programmatically in python, including both client and server code. Client implemented with the requests library and the server is implemented with the flask library.
View client.py
import requests
#http://docs.python-requests.org/en/latest/user/quickstart/#post-a-multipart-encoded-file
url = "http://localhost:5000/"
fin = open('simple_table.pdf', 'rb')
files = {'file': fin}
try:
r = requests.post(url, files=files)
print r.text
@ryanbekabe
ryanbekabe / client.py
Created Jun 29, 2019 — forked from kittinan/client.py
Python OpenCV webcam send image frame over socket
View client.py
import cv2
import io
import socket
import struct
import time
import pickle
import zlib
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client_socket.connect(('192.168.1.124', 8485))
@ryanbekabe
ryanbekabe / cuckoo-analysis.json
Last active Jun 28, 2019
Sample Report Cuckoo Sandbox with MongoDB
View cuckoo-analysis.json
{
"_id": "5d02dd4559bfaf1280fee9c9",
"info": {
"added": "2019-06-14T06:30:44.142Z",
"started": "2019-06-14T06:30:45.788Z",
"duration": 157,
"analysis_path": "/home/cuckoo/.cuckoo/storage/analyses/1180",
"ended": "2019-06-14T06:33:23.091Z",
"owner": null,
"score": 11,
@ryanbekabe
ryanbekabe / mongo-struc.js
Created Jun 22, 2019 — forked from hkasera/mongo-struc.js
A script for mongo shell to get the collection structure.
View mongo-struc.js
var conn = new Mongo();
db = conn.getDB(<DB_NAME>);
var cursor = db.<COLLECTION>.find();
var items = [];
items = cursor.toArray();
var dbstruc = {};
for (var i = 0; i < items.length; ++i) {
var target = items[i];
getKP(target,dbstruc);
}
@ryanbekabe
ryanbekabe / mongoDB.py
Created Jun 22, 2019 — forked from cjgiridhar/mongoDB.py
CRUD for MongoDB with Pymongo
View mongoDB.py
import pymongo
from pymongo import Connection
conn = Connection()
db = conn['myDB']
collection = db['language']
#Creating a collection
db.language.insert({"id": "1", "name": "C", "grade":"Boring"})
db.language.insert({"id": "2", "name":"Python", "grade":"Interesting"})
@ryanbekabe
ryanbekabe / ProceduralVsOop.php
Created Jun 21, 2019 — forked from sycue/ProceduralVsOop.php
PHP Procedural vs. Object-Oriented Programming (OOP)
View ProceduralVsOop.php
<?php
// Procedural
function example_new() {
return array(
'vars' => array()
);
}
function example_set($example, $name, $value) {
$example['vars'][$name] = $value;
@ryanbekabe
ryanbekabe / port-forwarding.py
Created May 28, 2019 — forked from WangYihang/port-forwarding.py
port forwarding via python socket
View port-forwarding.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Tcp Port Forwarding (Reverse Proxy)
# Author : WangYihang <wangyihanger@gmail.com>
import socket
import threading
import sys
View start-video-stream-w-opencv.py
# For more info: http://docs.opencv.org/3.0-beta/doc/py_tutorials/py_gui/py_video_display/py_video_display.html
import cv2
import numpy as np
# Playing video from file:
# cap = cv2.VideoCapture('vtest.avi')
# Capturing video from webcam:
cap = cv2.VideoCapture(0)
currentFrame = 0
View peanalyst4.py
#Python PE Analyst - MD5-SHA256-Size-PE Section-DLLs of .exe
#16/04/2019 - bekabeipa@gmail.com
#DB MySQL structure: id;filename;md5;sha256;filesize;dump;time
import datetime
import time
import pefile
import mmap
import hashlib
import pymysql
pymysql.install_as_MySQLdb()
View peanalyst2.py
#Python PE Analyst - MD5-SHA256-Size-DLLs of .exe
#16/04/2019 - bekabeipa@gmail.com
#DB MySQL structure: id;filename;md5;sha256;filesize;dump
import datetime
import time
import pefile
import mmap
import hashlib
import pymysql
pymysql.install_as_MySQLdb()
You can’t perform that action at this time.