Skip to content

Instantly share code, notes, and snippets.

View AlekseyCherepanov's full-sized avatar

Aleksey Cherepanov AlekseyCherepanov

View GitHub Profile
@AlekseyCherepanov
AlekseyCherepanov / README.md
Last active June 3, 2019 13:25
Write-up for Best Reverser contest at PHDays 9 (2019)

Райтап конкурса Best Reverser на конференции PHDays 9 (2019)

Работа над задачей позволила познакомиться с архитектурой m68k и попробовать сделать простые инструменты для работы с трассировкой инструкций.

Райтап описывает успешную часть решения, опуская тупиковые и не использованные ветки развития решения.

TL;DR, очень коротко:

@AlekseyCherepanov
AlekseyCherepanov / README.md
Last active November 6, 2017 11:08
Write-up for Day 6 of ZeroNights HackQuest 2017

Структура райтапа

  • Задача
  • Краткое описание решения
  • Использованные инструменты
  • Полезные идеи
  • Подробное решение с полными командами

TL;DR: 7 байт от одного числа достаточно для read(0, stack, big_N), чтобы дослать новый код и вызвать командную оболочку. Но первое рабочее решение было устроено сложней...

@AlekseyCherepanov
AlekseyCherepanov / validate.py
Created October 13, 2017 18:49
Custom validation utility for PCrack contest at SAINTCON
# -*- coding: utf-8 -*-
# Validating utility for sets of plaintexts ordered as original set of hashes.
# Usage: python validate.py < sub_cracks
# Copyright © 2017 Aleksey Cherepanov <lyosha@openwall.com>
# Redistribution and use in source and binary forms, with or without
# modification, are permitted.
import sys
import hashlib
// Copyright © 2015 Aleksey Cherepanov <lyosha@openwall.com>
// License is the same as Symbolism (Apache license)
// TODO: Replace above with the license
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using System.Text.RegularExpressions;
using System.Linq;
@AlekseyCherepanov
AlekseyCherepanov / raw-sha512-my.c
Created March 9, 2015 19:26
raw-sha512 generated by john-devkit
/* rawSHA512_fmt_plug.c from John the Ripper */
/*
* This file is part of John the Ripper password cracker,
* Copyright (c) 2010 by Solar Designer
* based on rawMD4_fmt.c code, with trivial changes by groszek.
*
* Rewritten Spring 2013, JimF. SSE code added and released with the following terms:
* No copyright is claimed, and the software is hereby placed in the public domain.
* In case this attempt to disclaim copyright and place the software in the public
* domain is deemed null and void, then the software is Copyright (c) 2011 JimF