Skip to content

Instantly share code, notes, and snippets.

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

Pichu Chen PichuChen

🏠
Working from home
View GitHub Profile
@jessehao
jessehao / BonjourClient.swift
Created May 23, 2019 09:06
A simple example for Bonjour
//
// BonjourClient.swift
// BonjourClient
//
// Created by Jesse Hao on 2019/5/23.
// Copyright © 2019 ONES. All rights reserved.
//
import Foundation
package main
import (
"fmt"
)
type 被質詢者 interface {
回答(問題 string) string
}

Step 1: Extract original binary file

import PIL.Image # pip install pillow

img = PIL.Image.open('en.png')
width, height = img.size

stream = ''

WannaCry|WannaDecrypt0r NSA-Cyberweapon-Powered Ransomware Worm

  • Virus Name: WannaCrypt, WannaCry, WanaCrypt0r, WCrypt, WCRY
  • Vector: All Windows versions before Windows 10 are vulnerable if not patched for MS-17-010. It uses EternalBlue MS17-010 to propagate.
  • Ransom: between $300 to $600. There is code to 'rm' (delete) files in the virus. Seems to reset if the virus crashes.
  • Backdooring: The worm loops through every RDP session on a system to run the ransomware as that user. It also installs the DOUBLEPULSAR backdoor. It corrupts shadow volumes to make recovery harder. (source: malwarebytes)
  • Kill switch: If the website www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com is up the virus exits instead of infecting the host. (source: malwarebytes). This domain has been sinkholed, stopping the spread of the worm. Will not work if proxied (source).

update: A minor variant of the viru

@jheasly
jheasly / rtlsdr-osx.txt
Last active February 26, 2021 04:02 — forked from 0xabad1dea/rtlsdr-osx.txt
Build RTL-SDR on OSX with no tears using homebrew. Forked from https://gist.github.com/0xabad1dea/5777726, a macports solution.
rtl-sdr build notes for OSX
using macports http://www.macports.org/
see http://sdr.osmocom.org/trac/wiki/rtl-sdr
brew install cmake
brew install libusb
brew install pkgconfig
brew install sox # for easy audio
git clone git://git.osmocom.org/rtl-sdr.git
cd rtl-sdr/