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. CodeExplorer
    Started by CodeExplorer,

    Visual C++ 6 maximum textbox len? (improvements?) I have a Visual C++ 6 project which will log all memory allocation of a process to textbox, here is the problem: the log text will be truncated to 5 KB (which is way to small!) Is there any way to improve maximum key length or should I log everything to a text file?

    • 13 replies
    • 7.1k views
  2. James Taylor
    Started by James Taylor,

    I am having trouble understanding struct in assembly from disassembly. can you please explain the code below. Disassembly pseudo code. Thanks

      • Like
    • 2 replies
    • 7.3k views
  3. LCF-AT
    Started by LCF-AT,

    Hi guy, I have a small question about TLS so I dont remember anymore and just asking now and I dont find any example file using TLSCallback + relocation to load file with dynamic base addresses. So in the TLS info table I can see direct VA addresses and no RVA addresses.My question is just whether the VA addresses gets updated like this... TLS info table VAs etc - Imagebase from PE Header = TLS RVAs + New loaded targetbase = New TLS VAs.Should be so right? As I said I am just quickly asking about it so I dont find a dynamic file I can checkout now to see it. Thanks

      • Like
    • 14 replies
    • 7.7k views
  4. Shera

    How does one know which Dll and Functions to include in the program ?

      • Like
    • 18 replies
    • 6.6k views
  5. LCF-AT
    Started by LCF-AT,

    Hi guys, I am looking for a lib which can assemble text commands to binary code.Something like the Multiline Ultimate Assembler plugin by RaMMicHaeL.I do enter my code as text and wanna assemble it. Ok,normaly I can use Disam lib from OllyDBG site using function Assemble to assemble text commands one by one.Problem is I wanna work also with labels and API names etc alomst same as the MUA plugin can do.Has anyone some ideas what I could use for that? Thank you

      • Thanks
      • Like
    • 54 replies
    • 24k views
  6. CodeExplorer
    Started by CodeExplorer,

    Prime numbers Solution: https://text-share.com/view/03a0d1ed

      • Confused
      • Thanks
    • 13 replies
    • 10.1k views
  7. CodeExplorer
    Started by CodeExplorer,

    To .NET experts: What's the difference between #~ and #- ??? #~ seems to be the good and default one! #- is used by dnlib #~ is used by Mono.Cecil

      • Like
    • 3 replies
    • 26.2k views
  8. Futex
    Started by Futex,

    Hi all, I wanted to execute a fonction on a loaded assembly, my code run well on a normal assembly, but it's failed when i try it on a obfuscated one (rdg packer says .net crypter) I list the string inside the binary like this: try { Assembly asm = Assembly.LoadFrom(executable); foreach (Type type in asm.GetTypes()) { foreach (MethodInfo method in type.GetMethods()) { if (method.MetadataToken == testToken) { Type t = asm.GetType(type.FullName); var methodInfoStatic = t.GetMethod(method.Name); if (methodInfoStatic == null) { throw new Exception("No such static method exists."); } object[] constructorParameters =…

    • 3 replies
    • 5.5k views
  9. LCF-AT
    Started by LCF-AT,

    Hi guys, I am playing around with that functions & struct to get a dialog same as in notepad to find / repleace etc.I get the new dialog to see where I can enter stuff etc.My problem now is how to catch the messages if I press OK / chancel etc to get the entered data and where?Can anyone post a example code of this? Thank you

      • Like
    • 5 replies
    • 5.3k views
  10. CodeExplorer
    Started by CodeExplorer,

    Pascal's Triangle: solution solved, Pelles C compiler. Attached. PascalsTriangle.zip

    • 0 replies
    • 7.4k views
  11. kate
    Started by kate,

    Hello all, I am trying to build one form auto filler application to book tickets from one indian website. The site is https://irctc.co.in I need to build the auto filler application using either c# or vb .net. The main issue with this site is its too much loaded at the time of booking so need solution for getting the fast response from loaded website in order to book tickets fast.

      • Like
    • 2 replies
    • 5.1k views
  12. Nextasy2k
    Started by Nextasy2k,

    I using uFMOD to Play .xm chiptunes in my Project. It works already finde! When i start the program it plays the music and when i close the program it stop playing. But i like to have one Button where i can start and stop the music. Like.... If music is playing then Stop music else Play music ... I'm a newbie in Delphi. I Hope anybody can Help me!

    • 3 replies
    • 5.9k views
  13. CloneWa
    Started by CloneWa,

    Hi. I am trying to find the best way to programatically "map" and compare code. Basically I have different versions of an application which is partly obfuscated and thus the names are different in every version and I'd like to find certain changes. For example, there could be a class like this: namespace ns1 { public class SomeClass1 { public string MyProperty1 { get; set } public void Method1() { // Code } public void Method2() { // Code } } } Then, in another version of the source code, it could look like this: namespace ns183 { public class AnotherClass112 { public string someProperty1 { ge…

    • 0 replies
    • 5.2k views
  14. Futex
    Started by Futex,

    Hi all, I start to use dnlib for the first time, and i wanted to made a string desofucator for an unknown malware packer. I list the string inside the binary like this: public static void DecryptStrings(ModuleDef module) { int count = 0; //List module Types foreach (TypeDef type in module.Types) { //List methods foreach (MethodDef method in type.Methods) { //Remove empty method if (!method.HasBody) break; //Check instructions for (int i = 0; i …

      • Like
    • 3 replies
    • 6.6k views
  15. C++

    How to execute embedded exe into memory without extracting ? I can extract file from resources but I want to execute without extracting. I hope this is not duplicate posts.

      • Like
    • 3 replies
    • 7.3k views
  16. Departure
    Started by Departure,

    Hey people I just need a little help from someone with some delphi experiance, Im new to delphi coming over from Vb6 and I have no problem writting to memory in Vb6 But I want to do it in delphi, I have used something similar that I would have used in vb6. But I would like to know how I would write multiple bytes to a single address implementation const Address1=$0054B28B; //These will be the address's im going to write to Address2=$0054B297; Address3=$0054B29C; {$R *.dfm}procedure TForm1.Button1Click(Sender: TObject); var Path : string; StartInfo : TStartupInfo; ProcInfo : TProcessInformation; CreateOK : Boolean; Write: Cardinal; NumberOfByt…

      • Thanks
      • Haha
      • Like
    • 14 replies
    • 9.1k views
  17. LCF-AT
    Started by LCF-AT,

    Hello, at the moment I trying to lern how to work with RegEx syntax and I have to say it makes fun and seems to be also very usefully.I also like the online site regex101 for testing / checking and to get the results and infos in realtime.(I would like to have any offline tool similar as regex101 [not notepad++]) Now my question is whether there are also any libs for MASM already I could use for myself in my apps if I need or want to check text sources for anything,so with RegEx it would be much better than to search manually with limited small pattern.Maybe any lib with functions I can also use with same string syntax etc.Does anyone know some latest thing etc…

      • Like
    • 8 replies
    • 6.4k views
  18. CodeExplorer
    Started by CodeExplorer,

    Looking for all JavaVMOption opt; What I have so far: public static string GetDescriptionFromComand(string command) { if (command.Equals("-Djava.compiler=NONE")) return "disable JIT"; if (command.StartsWith("-Djava.class.path=")) return "user classes"; if (command.StartsWith("-Djava.library.path=")) return "set native library path"; if (command.Equals("-verbose:jni")) return "print JNI-related messages"; return ""; } Any help will be great, also searched with google but no good result.

      • Like
      • Thanks
    • 1 reply
    • 8.4k views
  19. Guest Steve
    Started by Guest Steve,

    #include <windows.h> #include <stdio.h> #include <tlhelp32.h> unsigned long _GetProcessId( char* szProcName ) { PROCESSENTRY32 pe32; HANDLE hHandle; hHandle = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 ); pe32.dwSize = sizeof( PROCESSENTRY32 ); if( !Process32First( hHandle, &pe32 ) ) return 0; while( Process32Next( hHandle, &pe32 ) ) { if( strcmp( szProcName, pe32.szExeFile ) == 0 { CloseHandle( hHandle ); return pe32.th32ProcessID; } CloseHandle( hHandle ); return 0; } unsigned long _ScanForBytes( c…

    • 3 replies
    • 5.7k views
  20. LCF-AT
    Started by LCF-AT,

    Hi guys, today I got a error message trying to map a large file +1 GB and get error code ERROR_NOT_ENOUGH_MEMORY.For smaller files it works.My question now is how to handle large files without to get any problems? CreateFile GetFileSize // till max 4 GB = -1h CreateFileMapping MapViewOfFile,handle,FILE_MAP_READ,0,0,0 // = ERROR_NOT_ENOUGH_MEMORY (00000008) dwNumberOfBytesToMap --------------------------- Specifies the number of bytes of the file to map. If dwNumberOfBytesToMap is zero, the entire file is mapped. How to handle large files?What is the normal way for that?Should I first check how much virtualmemory the system has (in my case 4 GB - 1 GB for g…

      • Like
    • 5 replies
    • 8k views
  21. Aldhard Oswine
    Started by Aldhard Oswine,

    I'm reading IDA pro Book 2nd edition, author talks about writing plugin for IDA and uses C++, is this possible to write a plugin entire with python, plugin with menu item and shortcut?

    • 1 reply
    • 8.3k views
  22. 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; …

    • 3 replies
    • 5.9k views
  23. 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
  24. 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
  25. 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

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.