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
#--------------------------------------------------------------------- | |
# 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
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: |
OlderNewer