Skip to content

Instantly share code, notes, and snippets.

Francesco Picasso dfirfpi

Block or report user

Report or block dfirfpi

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
@dfirfpi
dfirfpi / wanna_sink_check.py
Last active Mar 20, 2018
Check if WannaCry SinkHole is reachable, as per its code.
View wanna_sink_check.py
from __future__ import print_function
import ctypes
DLL_KERNEL32 = ctypes.windll.kernel32
DLL_WININET = ctypes.windll.wininet
handle_inet = DLL_WININET.InternetOpenA(None, 1, None, None, None)
response = DLL_WININET.InternetOpenUrlA(
handle_inet,
@dfirfpi
dfirfpi / unssz.py
Created May 4, 2017
Decrypt Samsung / Seagate Secure Zone crypto container (without knowing the password... uao...).
View unssz.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2017, Francesco "dfirfpi" Picasso <francesco.picasso@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@dfirfpi
dfirfpi / uapc_inject.py
Created Mar 17, 2017
QueueUserAPC injection Python demo test
View uapc_inject.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2017, Francesco "dfirfpi" Picasso <francesco.picasso@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@dfirfpi
dfirfpi / get_baudrate.c
Created Nov 16, 2016
Baud Rate Detector
View get_baudrate.c
#include <termios.h>
#include <unistd.h>
#include <stdio.h>
// Author: clacke
// Ref: http://unix.stackexchange.com/questions/72979/how-does-cat-know-the-baud-rate-of-the-serial-port
// do a lookup for the value returned in termbits.h
int main() {
@dfirfpi
dfirfpi / w10pfdecomp.py
Last active Jul 4, 2018
Windows 10 Prefetch (native) Decompress
View w10pfdecomp.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2015, Francesco "dfirfpi" Picasso <francesco.picasso@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
You can’t perform that action at this time.