Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Programming and Coding

Programming and coding tips, help and solutions...

  1. Leafy
    Started by Leafy,

    If i try to insert a call after a Instruction im getting a Method is not defined in this Module Exception using dnlib.DotNet; using dnlib.DotNet.Emit; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace LeafObfuscator.Protection { //TODO: Fix class Int32 { public static void encode(ModuleDefMD md) { Inject.injectmethods(md,Int(md)); foreach (TypeDef type in md.Types) { foreach (MethodDef method in type.Methods) { CilBody body = method.Body; …

    • 0 replies
    • 5.4k views
  2. ChupaChu
    Started by ChupaChu,

    Hi there, i have a question for Delphi code. I want to be able to read all text from other processess windows. Now i am aware of FindWindow API, but it only reads Caption of a main form - and I want to be able to read from status bar, menus, memoboxes, from everything that might contain text. So is there a way to get this (except capturing a screen and using ocr to recognize eventualy text)? Any ideas, comments?

      • Like
    • 19 replies
    • 10.9k views
  3. Sh4DoVV
    Started by Sh4DoVV,

    Hi How to write a loader for bypass hwid of winlicense protected file ? i can patch it in Ollydbg , but i don't know how to write loader for it thanks

    • 0 replies
    • 6.7k views
  4. ViL

    Hii! i am almost about to release my first old-school intro with some friends! the only thing left is to know how to bind textures to a quad i am working with opengl 1.1 as much as i can, for this intro to work on old windows/old integrated graphic chips, so i want to avoid libraries and do it as vanilla as posible also to learn from it! = p i created a new opengl template in Code::Blocks to work in a cleaner environment, the code is as follow: https://pastebin.com/raw/XpS0hRpj which output this nice square on the screen: BUT instead i want to use this nice snowflake: and since afaik i can't use png files without a library, here is the …

    • 3 replies
    • 5.5k views
  5. T-Mixer
    Started by T-Mixer,

    Is there any way please (code or tool) for x64 '.dll' files inline patching ? I will be a great favor. Thanks.

      • Like
    • 7 replies
    • 6.9k views
  6. PermaNull
    Started by PermaNull,

    I'm wondering if there's any library available for patching IL code in-memory at run-time of a remote App, similar to how you'd perform detours or write memory to a remote C app. Basically I'm dealing with an application I'd like to bypass some checks on but getting defeated by the packer's integrity protection when manipulating the IL in the binary itself, so I figured my next best option was to write a loader and patch the process in memory. I've looked through a few different things: https://github.com/0xd4d/dnlib - I haven't discovered any in-memory patching functions for IL code in specific locations in dnlib if it exists please do let me know. Most o…

    • 4 replies
    • 10.7k views
  7. Zeupert
    Started by Zeupert,

    In my DLL I am using the MinHook library to hook certain functions based on their address. The problem is, if I try to directly call the original function with the address that MinHook gives me, it ends up crashing, it only works when jumping directly to the address. I am working in x64 btw. I am hooking the function in a way like this: extern "C" LPVOID originalFunc; LPVOID myAddress = 0xDEADC0DE; MH_CreateHook(myAddress, &myCustomFunc, &originalFunc) the "myCustomFunc" is also declared extern "C" and is a function in a seperate assembly file, looking like this: myCustomFunc: *push all registers, similar to pushad* call myFunction *po…

      • Like
    • 5 replies
    • 10.3k views
  8. ViL
    Started by ViL,

    Hii, there's been a lots of obstacles on my first intro making BUT most of them have been resolved either by trying hard or looking for threads on forums BUT this time i can't find the answer anywhere, so i ask your help to solve this puzzle on my main.c project (Code::Blocks always create it with .c when using the OpenGL Project template BUT i still use C++ on it) i have included this ufmod.h header: https://pastebin.com/raw/UMuqxB6h (Note that it specifies Compiler: Visual C, Dev-C++ BUT i want to use Code::Blocks :c) and have this function to play music /* music function */ void play_xm(){ uFMOD_PlaySong((char*)1, 0, XM_RESOURCE); …

      • Like
    • 7 replies
    • 11.1k views
  9. atom0s
    Started by atom0s,

    Recently lost a bunch of old pdf files and whitepapers I had covering these kinds of topics. Looking for any examples/papers/pdfs etc. that contain things like: Anti-Decompiler Techniques Anti-Debugger Techniques Anti-Disassembler Techniques Mainly looking for native code protection information, not .NET related stuff.

      • Sad
      • Like
    • 4 replies
    • 5.4k views
  10. JohnWho
    Started by JohnWho,

    I have been working on a EXE protector for a looooooooooooong time and in the process i have coded a lot of test functions, here is a first and very basic version of one of them. Instead of just sharing the code snippets i put the functions to use by showing it in action. The example does: 1). Add a new section to a 32-bit .exe 2). Change entry point to new section, 3). Add variables to layer encrypted function and encrypt the 5 layers 4). Write layer encrypted function to new section When target file is executed the 5 layers is decrypted, on last layer OEP is decrypted and jump is taken to OEP. All is simple xor encryption. …

      • Thanks
      • Like
    • 3 replies
    • 7.4k views
  11. root
    Started by root,

    Syntia is a program synthesis based framework for deobfuscation. It uses instruction traces as an blackbox oracle to produce random input and output pairs. From these I/O pairs, the synthesizer learns the code's underlying semantic. https://github.com/RUB-SysSec/syntia

    • 0 replies
    • 4.8k views
  12. CodeExplorer
    Started by CodeExplorer,

    Allocate Console in Java??? When I try to run the bolded one it doesn't work: JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); int compilationResult = compiler.run(null, null, null,sourceFile.getPath()); The run method can use streams to handle input and output: int run(InputStream in, OutputStream out, OutputStream err, String... arguments) When I run the program from console with java.exe or even javaw.exe all works ok. SO I think it fails because it doesn't have a console window or such... Anyone know how to solve the problem?

    • 3 replies
    • 13.3k views
  13. CodeExplorer
    Started by CodeExplorer,

    Hi guys and gals. I wanna execute an exe inside same process with Java code. Hopefully someone will give some advices , I am not familiarly not even with executing exes from native code. So first I have to use LoadLibrary of the exe, then what? From what I've read on https://stackoverflow.com/questions/44912/java-delegates I'm fornicated since there are no delegates on Java!

    • 2 replies
    • 5.1k views
  14. CodeExplorer
    Started by CodeExplorer,

    Java Compilers Some time ago I've searched over NET for java compilers, then without good results, Now I've found some: https://blogs.oracle.com/sundararajan/week-end-fun-with-the-java-compiler-source-code https://en.wikipedia.org/wiki/Javac http://janino-compiler.github.io/janino/ https://github.com/janino-compiler/janino https://stackoverflow.com/questions/616532/on-the-fly-in-memory-java-code-compilation-for-java-5-and-java-6 https://commons.apache.org/proper/commons-jci/ jci seems tom be the winner, trough is a bit outdated.

      • Like
    • 2 replies
    • 9.6k views
  15. JQueue
    Started by JQueue,

    Are there any C++ hooking libraries that also allows a function to be called right before the return statement? I would like to get some values from two registers after the function has executed, without having to hook all the places where this function is called.

      • Like
    • 5 replies
    • 23.4k views
  16. Avenger
    Started by Avenger,

    Hi When i load and save assembly(without any editing) (using dnlib) result is broken When i run result I got below message: And when I open it on dnspy : What's wrong?

    • 1 reply
    • 4.7k views
  17. Avenger
    Started by Avenger,

    Hi I want to invoke method from c++/cli assembly but when I use Assembly.Load(filename) I get caught in catch block with below message: "Attempt to load an unverifiable executable with fixups (IAT with more than 2 sections or a TLS section.)" What should i do to load assembly and invoke method?

      • Thanks
    • 3 replies
    • 6.9k views
  18. CodeExplorer
    Started by CodeExplorer,

    Assembly.Load vs LoadFile vs LoadFrom Link: />http://codingarchitect.wordpress.com/2006/09/11/assembly-load-vs-loadfile-vs-loadfrom/

    • 2 replies
    • 10.6k views
  19. ramzi2015

    I'm using : - windows 7 x64 - Android studio 2.3.3 with offline gradle (gradle-4.2) - Ndk is installed (android-ndk-r15c-windows-x86_64) - CMake is installed (cmake-3.10.0-rc4) - lldb for debuging is installed Why the native method is always in red? How to load Prebuilt Libraries ".so" files properly into android studio? If possible, i need a demo project for using prebuild libraries. I attached a sample project for my work and a screen capture for android project. Forgive me if i can't reply in time, i have a limited internet connection. -------------------------------- how to use Android.mk? ----------------…

      • Like
    • 8 replies
    • 9.5k views
  20. skylark
    Started by skylark,

    Hello, I have been trying to make different self modifying programs in c++, but there have been some problems I am facing due to my less knowledge and experiences. I would be grateful if anyone helps me about these 2 question. 1. how to make the exe's code section writable programmatically? normally, after compiling the program, I use cff explorer and change the "is writable" flag of that program to allow it modify itself. But what code can I write inside the main() function to make it compile with the write allowed? 2. So, far, to make some certain lines self modifying, I am doing it this way : asm("nop"); asm("nop"); asm("nop"); asm("nop"); asm("no…

    • 6 replies
    • 6.8k views
  21. opc0d3
    Started by opc0d3,

    Hello there.. There is some C paper about dll ? I already compiling dll... but I can't find any in depth article or paper about it in pure C. Only in C++... I do like C, but anywhere that i look is C++.

    • 1 reply
    • 5.3k views
  22. skylark
    Started by skylark,

    Hello, how do you make a .net coded program self modify itself at run-time? I am not talking about making a loader program or something like that. Like, in native, you can make the program xor itself from and upto certain addresses at runtime, is it possible to do the same in .net? Then how? Now, about modifying IL codes. So far, I know about basic code injection in a method using mono.cecil library, but I can do it only in a non-running app. I intend to add some codes in sub_new () or entry point method to make the program add/remove/modify few IL code lines in a specific method. Like this, sub new() // get the certain method // add/remove IL code fr…

      • Like
    • 10 replies
    • 6.9k views
  23. T-rad
    Started by T-rad,

    I started playing with Delphi again after a couple of years and now I am feeling dumb, really dumb. Is there a function in Delphi that reads an ascii string, say 54 2D 72 61 64 (T-rad) as 64 00 00 00 54 2D 72 61 (d...T-ra) string type Thanks for any help T-rad

    • 5 replies
    • 7.3k views
  24. Zasz
    Started by Zasz,

    Hello, I'm developing a processor module for IDA (using the C API) and I've run into something that has me quite annoyed. Sometimes, when I call the blocking functions from kernwin.hpp (warning(), for example, which displays a MessageBox), they would cause IDA to crash. Removing those function calls from the processor module makes it work fine. I'm calling those functions from within my emulator function, and when IDA calls my outputter afterwards to output the instruction it crashes inside the call I make to MakeLine(). Digging a bit deeper, it seems like IDA loads and unloads some sort of context related to the GUI or outputting of disassembled t…

    • 0 replies
    • 4.7k views
  25. h4sh3m
    Started by h4sh3m,

    Hi all friends Please share this SDK if you have it ! I need some header files if anyone have it but don't like share full sdk ! BR, h4sh3m

    • 0 replies
    • 6.4k views

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.