Skip to content

Instantly share code, notes, and snippets.

@DeadNumbers
DeadNumbers / DocsMiner.MD
Created March 3, 2019 12:14 — forked from anonymous/DocsMiner.MD
ДоксМайнер мануал

Эта инструкция собрана по крупицам анонов и призвана помочь всем тем, кто не знает как скачивать личные документы из вк. Часто возникает один вопрос:

Можно ли скачивать личные документы конкретного пользователя вк?

Да, можно и нужно. Читай подробнее инструкцию и поймешь как это сделать.

Поиск документов

  1. Заходим на vk.com/docs
@DeadNumbers
DeadNumbers / dlopen_sample.c
Created August 20, 2023 05:33 — forked from tailriver/ dlopen_sample.c
A sample of using dlopen library.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dlfcn.h>
int main(int argc, char** argv)
{
void *handle;
void (*func_print_name)(const char*);
@DeadNumbers
DeadNumbers / Makefile
Created November 1, 2022 21:44 — forked from llj098/Makefile
a sample tcp server runs in kernel
obj-m += tcp_svr_sample.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clea
@DeadNumbers
DeadNumbers / git
Created July 15, 2022 12:59 — forked from mikkabond/git
git commands and hacks
## https://dev.to/nishina555/how-to-ignore-files-already-managed-with-git-locally-19oo
## как игнорировать изменения уже отслеживаемого файла/папки
# если нужно менять локально и не отправлять затем в основную ветку
git update-index --skip-worktree путь/к/файлу/файл
# обратная операция
git update-index --no-skip-worktree путь/к/файлу/файл
# если не нужно менять локальные файлы (при подтягивании изменений из основной ветки)
git update-index --assume-unchanged путь/к/файлу/файл
# обратная операция
git update-index --no-assume-unchanged путь/к/файлу/файл
@DeadNumbers
DeadNumbers / sqlite_static_cpp.md
Created March 5, 2022 06:34 — forked from payalord/sqlite_static_cpp.md
How to add SQLite into your VS project as Static Library

I assume that you already created C++ Win32 project where you want to include SQLite.

  1. Navigate to https://www.sqlite.org/download.html and download latest amalgamation source version of SQLite.
  2. Extract all the files into your project directory, or your include path, or separate path that you will add/added as include path in your project properties.
  3. Run Developer Command Prompt for VS **** which is usually available at Start -> Programs -> Visual Studio **** -> Visual Studio Tools.
  4. Navigate with command prompt to that directory where we extracted our SQLite.
  5. Run next command to compile: cl /c /EHsc sqlite3.c
  6. Run next command to create static library: lib sqlite3.obj
  7. Open properties of your project and add sqlite3.lib to Linker -> Input -> Additional Dependencies.

Full List of Environment Variables in Windows 10

![information][6] Information

[Environment variables][7] are a set of dynamic named values that can affect the way running processes will behave on a computer. The variables can be used both in scripts and on the command line. Environment variables makes it easy when certain standard directories and parameters need to be referenced but where the actual locations or names can vary from computer to computer.

This tutorial will show you a complete list of environment variables that can be used to reference standard directories and parameters in Windows 10.

![Note][8] Note

@DeadNumbers
DeadNumbers / empty_rust_structs.md
Created January 28, 2022 16:43 — forked from ChrisWellsWood/empty_rust_structs.md
Initialising empty structs in Rust.

Initialising Empty Structs in Rust

In C/C++, you can initialise a struct without giving values for any of the fields:

struct Point {
  float x;
  float y;
  float z;
};
@DeadNumbers
DeadNumbers / tutorial.md
Created June 10, 2021 10:58 — forked from KyrillosWalid/tutorial.md
How to add Nim-lang code to C/C++ code - TUTORIAL

How to add Nim-lang code to C/C++ code


Note 1: This tutorial is for Linux users only, but if you understand the idea, you can use it on all systems and it will work as required :).
Note 2: Nim-lang version used in this tutorial is 1.0.4 (To get Nim-lang version nim -v)

To add Nim-lang code to C/C++ code you have 3 choices :

  • Compile Nim-lang code as a (C/C++ header File). THIS IS WHAT WE WILL TAKE TODAY.
  • Compile Nim-lang code as a (C/C++ static library).
  • Compile Nim-lang code as a (C/C++ dynamic library).
@DeadNumbers
DeadNumbers / ast.md
Created May 8, 2021 14:17 — forked from sergey-shambir/ast.md
Кодирование AST

Связь AST и парсера

  • Абстрактное синтаксическое дерево (AST) содержит связанные между собой экземпляры структур данных (узлов).
  • При этом узлами AST можно представить все конструкции, допустимые в соответствующем языке программирования.

Допустим, программа состоит из последовательных инструкций. Каждая инструкция — это определение функции или вызов функции. Тогда структура AST может быть такой:

Program (struct)
 -&gt; std::vector statements
The android/meterpreter/reverse_tcp payload is a Java-based Meterpreter that can be used on an
Android device. It is still at an early stage of development, but there are so many things you can
do with it already.
The Android Meterpreter allows you to do things like take remote control the file system, listen to phone calls, retrieve or send SMS messages, geo-locate the user, run post-exploitation modules, etc.
## Vulnerable Application
You can test android/meterpreter/reverse_tcp on these devices: