title | description | source |
---|---|---|
Shellcoding for Linux and Windows Tutorial |
Shellcoding for Linux and Windows Tutorial with example windows and linux shellcode |
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
# Sample TOML configuration file for building Rust. | |
changelog-seen = 1 | |
# ============================================================================= | |
# Tweaking how LLVM is compiled | |
# ============================================================================= | |
[llvm] | |
# Whether to use Rust CI built LLVM instead of locally building it. | |
# |
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
--- config.toml.example 2020-04-25 15:21:35.799043057 +0000 | |
+++ config.toml 2020-04-25 16:03:27.412416851 +0000 | |
@@ -36,7 +36,7 @@ | |
#assertions = false | |
# Indicates whether ccache is used when building LLVM | |
-#ccache = false | |
+ccache = true | |
# or alternatively ... | |
#ccache = "/path/to/ccache" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 glibc-2.29 | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define INTERNAL_SIZE_T size_t | |
#define SIZE_SZ sizeof(INTERNAL_SIZE_T) | |
struct malloc_chunk { | |
INTERNAL_SIZE_T mchunk_prev_size; /* Size of previous chunk (if free). */ | |
INTERNAL_SIZE_T mchunk_size; /* Size in bytes, including overhead. */ |
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::env; | |
use std::mem::size_of; | |
const SIZE_SZ: usize = size_of::<usize>(); | |
#[repr(C)] | |
struct malloc_chunk { | |
mchunk_prev_size: usize, /* Size of previous chunk (if free). */ | |
mchunk_size: usize, /* Size in bytes, including overhead. */ | |
fd: *mut malloc_chunk, /* double links -- used only if free. */ |
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
% git status -s | |
## tidy-lldb...origin/tidy-lldb | |
% CARGO_LOG=cargo::core::compiler::fingerprint=info ./x.py test --stage 1 src/test/ui | |
Updating only changed submodules | |
Submodules updated in 0.06 seconds | |
Finished dev [unoptimized] target(s) in 0.23s | |
Building stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu) | |
Finished release [optimized] target(s) in 0.27s | |
Copying stage0 std from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu) | |
Building stage0 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Testing TOML syntax highlighting</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js"></script> | |
<script>hljs.initHighlightingOnLoad();</script> | |
<link href="prism.css" rel="stylesheet" /> | |
<script src="prism.js"></script> |
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/env bash | |
set -ex | |
MY_PREFIX="${DEFAULT_PREFIX:-${HOME}/.local}" | |
LLVM_TAG=llvmorg-10.0.1 | |
mkdir llvm-project && cd $_ | |
curl -L "https://github.com/llvm/llvm-project/archive/${LLVM_TAG}.tar.gz" \ |
With rustgdb:
(gdb) x/75i drop::main
0x7d90 <drop::main>: sub rsp,0xa8
0x7d97 <drop::main+7>: lea rax,[rip+0x4bc0a] # 0x539a8
0x7d9e <drop::main+14>: mov ecx,0x8
0x7da3 <drop::main+19>: mov edx,ecx
0x7da5 <drop::main+21>: lea rdi,[rsp+0x18]
0x7daa <drop::main+26>: mov rsi,rax
0x7dad <drop::main+29>: call 0xa760 <<alloc::string::String as core::convert::From<&'a str>>::from>
NewerOlder