This file contains hidden or 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
| package main | |
| import "fmt" | |
| func draw(w, h int) { | |
| for i := 0; i < h; i++ { | |
| if i % 2 == 0 { |
This file contains hidden or 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 <iostream> | |
| int add(int x, int y){return x+y;} | |
| int main() | |
| { | |
| int res = add(4,4); | |
| return 0; | |
| } |
This file contains hidden or 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
| using System; | |
| using PeNet.FileParser; | |
| using PeNet; | |
| using PeNet.Header; | |
| namespace PEFun | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) |
This file contains hidden or 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
| // client | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Collections; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Net.Sockets; |
This file contains hidden or 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 way to read a Binary File using modern c++ | |
| #include <iostream> | |
| #include <vector> | |
| #include <fstream> | |
| #include <iterator> | |
| template <typename T> | |
| auto ReadBinFile(std::string FilePath) -> std::vector<T> | |
| { | |
| std::ifstream File(FilePath, std::ios::binary); |
This file contains hidden or 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 <stdio.h> | |
| #include <stdnoreturn.h> | |
| // https://godbolt.org/z/Pqv8YTPWc | |
| int main(){ | |
| noreturn void 🤯(){printf("C Is Cool");} // noreturn means that function when called will never return and code after it won't be executed even when return statement is executed in it + nested functions are allowed | |
| volatile const char * 🧠= "brain"; // works with clang |
This file contains hidden or 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 <stdio.h> | |
| #include <stdbool.h> | |
| #include <stdnoreturn.h> | |
| // https://godbolt.org/z/W7jrMdMKG | |
| int main() | |
| { | |
| int Can👧marry👦(int 👧age, int 👦age); | |
| int 👧age, 👦age; |
This file contains hidden or 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
| #pragma pack(push, 1) | |
| typedef unsigned __int64 uint64; | |
| typedef union | |
| { | |
| uint64 All; | |
| struct | |
| { | |
| uint64 Ignored_0 : 3; | |
| uint64 WriteThrough : 1; |
Windows Kernel Learning: https://mirokaku.github.io/Blog/categories/Windows-kernel-learning/
Journey Into the Object Manager Executive Subsystem: Handles: https://ntamonsec.blogspot.com/2020/06/journey-into-object-manager-executive-handles.html
Random Windows Kernel Articles: https://codemachine.com/articles.html
Journey Into the Object Manager Executive Subsystem: Object Header and Object Type: https://ntamonsec.blogspot.com/2020/05/journey-into-object-manager-executive.html
Windows Exploitation Tricks (All Articles)