This file contains 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 idaapi | |
def find_sig(segment, sig, callback): | |
seg = idaapi.get_segm_by_name(segment) | |
if not seg: | |
return | |
ea, maxea = seg.start_ea, seg.end_ea | |
while ea != idaapi.BADADDR: | |
ea = idaapi.find_binary(ea, maxea, sig, 16, idaapi.SEARCH_DOWN) | |
if ea != idaapi.BADADDR: |
This file contains 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
#--------------------------------------------------------------------- | |
# Simple IDA script to extract RSA private keys and certificates. | |
# kyprizel, 2010 | |
# | |
# Based on original idea and PoC by Tobias Klein | |
# http://www.trapkit.de/research/sslkeyfinder/ | |
#--------------------------------------------------------------------- | |
import os | |
import idaapi | |
from idautils import * |
This file contains 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
l = open("input", "r").read().split("\n") | |
l[len(l)-1] = "0" | |
content = list(map(lambda x: int(x), l)) | |
print(content) | |
counter = 0 | |
""" | |
for i, n in enumerate(content): |
This file contains 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
Salut ! | |
Etant donné que vous êtes beaucoup à me demander comment commencer le low level et le Reverse Engineering, je vais essayer de faire un petit résumé qui se base essentiellement sur ma propre expérience. | |
Tout d'abord je ne pense pas qu'il faille avoir des connaissances au préalable pour se lancer dans le low level, cependant il y a certaines notions qui sont indispensables dans le bas niveau et que l'on retrouve plus ou moins naturellement quand on a déjà codé en C ou mieux en assembleur. C'est donc pratique de savoir programmer dans un langage de bas niveau et c'est je pense la première étape pour envisager le low level. | |
Je conseille donc en premier lieu d'apprendre le C qui en plus d'être un langage que vous devrez très souvent lire, c'est aussi souvent des programmes en C que l'on commence à analyser quand on débute, de par la clarté du code assembleur généré. | |
**Pour apprendre le C je conseille ce cours écrit: https://zestedesavoir.com/tutoriels/755/le-langage-c-1/** (en français ce qui n'est pas |
This file contains 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
use std::fs::File; | |
use std::fs::{OpenOptions}; | |
use std::io::{Read}; | |
//use std::mem::{size_of, transmute}; | |
/* | |
typedef struct | |
{ | |
unsigned char e_ident[EI_NIDENT]; // Magic number and other info | |
Elf64_Half e_type; // Object file type |
This file contains 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
# 4 nsi | |
class Liste: | |
def __init__(self): | |
self.main_l = [0] | |
# =-=-=-=-= Getters =-==-=-=-=-= | |
def ReadElem(self, i): | |
if i > self.main_l[0]: |
This file contains 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
#!/usr/bin/python3 | |
# /* | |
# * ---------------------------------------------------------------------------- | |
# * "THE BEER-WARE LICENSE" (Revision 42): | |
# * n4sm wrote this file. As long as you retain this notice you | |
# * can do whatever you want with this stuff. If we meet some day, and you think | |
# * this stuff is worth it, you can buy me a beer in return Poul-Henning Kamp | |
# * ---------------------------------------------------------------------------- | |
# * / |
This file contains 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
#!/usr/bin/python2 | |
from pwn import * | |
def padd(d): | |
return d + '\00'*(8-len(d)) | |
p = process("/home/nasm/rop") | |
# TO EDIT |
This file contains 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
#!/usr/bin/python3 | |
import turtle | |
PENUP = "u" | |
PENDOWN = "d" | |
FORWARD = "f" | |
BACKWARD = "b" | |
LEFT = "l" | |
RIGHT = "r" |
This file contains 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
#include <linux/init.h> | |
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/vmalloc.h> | |
#include <linux/slab.h> | |
#include <linux/uaccess.h> | |
#include <linux/fs.h> | |
#include <linux/miscdevice.h> | |
MODULE_LICENSE("GPL"); |
NewerOlder