This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip3 install websocket-client | |
import websocket | |
from multiprocessing import Process, Value, Lock, Event | |
from datetime import datetime | |
import dateutil.parser | |
import json | |
from time import sleep | |
class SFDInfo(): | |
def __init__(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import binascii | |
import itertools | |
# XORs two byte strings together | |
def xor_bytes(bytes1, bytes2): | |
return [ chr(ord(a) ^ b) for (a, b) in zip(bytes1, bytes2) ] | |
# XORs a ciphertext with the malware's hardcoded key, and repeats it until it's long enough to match the ciphertext length. | |
def decrypt(cipher, key_hex = 'BB2FA36AAA9541F0'): | |
key_bytes = [ ord(a) for a in key_hex ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.PrintStream; | |
import java.util.Base64; | |
/** | |
* Java 8 より導入された java.util.Base64 の利用デモ。 | |
*/ | |
public class Base64Demo { | |
private static final PrintStream o = System.out; | |
public static void main(String[] args) { |