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
extension IsSorted<T extends Comparable> on List<T> { | |
bool get isSorted { | |
if (this.length <= 1) return true; | |
for (var i = 1; i < this.length; i++) { | |
if (this[i].compareTo(this[i - 1]) < 0) return false; | |
} | |
return true; | |
} |
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 'dart:core'; | |
import 'dart:ffi'; | |
final _libc = DynamicLibrary.open('libc.so.6'); | |
typedef abs_t = Int32 Function(Int32); | |
typedef abs_d = int Function(int); | |
final _abs = _libc.lookupFunction<abs_t, abs_d>('abs'); |
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 <assert.h> | |
#include <stddef.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
// LIFO Singly Linked List Windows API Clone for drafting and testing purpose | |
// Not taking account of memory alignment constraints of the original API | |
// |
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
from idaapi import * | |
from idautils import * | |
from idc import * | |
from ida_funcs import * | |
from miasm.analysis.binary import Container | |
from miasm.analysis.machine import Machine | |
from miasm.core.locationdb import LocationDB | |
from miasm.ir.symbexec import SymbolicExecutionEngine | |
from miasm.core.bin_stream_ida import bin_stream_ida |
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
meta: | |
id: rsi_manifest | |
title: Roberts Space Industries Launcher Manifest file | |
application: RSI Launcher v1.2.1.0 | |
file-extension: | |
- manifest | |
encoding: ascii | |
endian: le | |
types: | |
header: |
OlderNewer