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

    Hi guys, does anyone know how to decompress CWS files to FWS (decompressed) manually or via dll / API xy? My first goal was it to find any internet request paramter what could do decompress directly on fly but I didnt found such command and can only download the CWS file.Now I got this in memory and would like to decompress it now before writing the file.Next I tried to find any way to do this manually but also didnt find a description how to decompress CWS by hand.As next I tried to find any dll / APIs which I could use to decompress the CWS / bytes in memory and just found infos about zlib but also there I found no infos about CWS etc.Now the question is how t…

      • Like
    • 10 replies
    • 11.3k views
  2. malware
    Started by malware,

    What UI (user interface) used to develop kesperky antivirus? avat and eset and bitdefder? They have some sick gui. I wanna develop UI like them I guess bitdefender used embedded html and css UI..

      • Like
    • 6 replies
    • 6.3k views
  3. LCF-AT
    Started by LCF-AT,

    Hi guys, so I would like to visit a website as usual in browser (visit site / all links gets loaded / webconsole) but this time I wanna visit it "without using a browser".How can I do this and/or what kind of tools / libs engines etc are already out there I could use for that etc?So my goal is it to get all loading links of a site.So thats diffrent to just call only one website to grab the pagesource and in this new case I need to find some link/s during the site is loading it and which are not present into the main site.Maybe anyone could help with some infos for that etc. Thank you

    • 0 replies
    • 4.5k views
  4. James Taylor
    Started by James Taylor,

    i am new to assembly programming. First i thank to member of tuts4you for being helpful in needy times. I am learning assembly from online and books. i am stuck on point. I am having problem using 1. lea eax, [esp-04h*2] 2. mov [ebx-04h], bp ; 3. cmp [esi+eax-06h], 'KCUF' 4. cmp word ptr [ebx+18h], 01h 5. cmp dword ptr [esi], 00455000h or similar code snippet. Thanks, I know this is very basic question to ask but i wanna learn from here as well. Please take some moment and explain what address mode it is and what does the code do. Thanks

    • 11 replies
    • 5.5k views
  5. James Taylor
    Started by James Taylor,

    the following cods is generated by IDA pro. I don't understand where and what is assigned to off_40G030? there is no reference in code section. what does the following code mean? what is the clean code of the following code?

      • Sad
      • Thanks
      • Like
    • 5 replies
    • 5k views
  6. pwnium
    Started by pwnium,

    Hello there ! how to write a program add two numbers and print the result in text box in order to print the result we can use SetDlgItemText Funtion , the problem is i don't know how to add two numbers .. what functions we need ? am using MASM32 , and RadASM IDE Regards,

      • Like
      • Confused
    • 7 replies
    • 5.9k views
  7. LCF-AT
    Started by LCF-AT,

    Hi guys, I have some trouble again with that quotation marks issues for paths etc.Just wanna ask again how to do it right and how to handle it without to get any errors starting commandline tools with paths and arguments.I get always problems if paths using spaces and if not all works.In this case I try to qms for the path but it also fails. Example: Below without qms for ffmpeg path so I changed the bin folder and added some spaces for testing... cmd.exe /c C:\FFMPEG_Sets\ffmpeg-3.3.4-win32-static\bin 1 2\ffmpeg.exe -i "https:///.....m3u8" -vcodec copy -acodec copy -f mpegts - | "C:\Program Files\VideoLAN\VLC\vlc.exe" - Now in cmd window I get this error…

      • Like
    • 4 replies
    • 4.9k views
  8. CodeExplorer

    Local variables definition versus class (instance) variable definition speed: int K2[3] = { 0xd76aa478, 0xe8c7b756, 0x242070db}; void Function() { int K1[3] = { 0xd76aa478, 0xe8c7b756, 0x242070db}; int before2 = GetTickCount(); for (int ki2=0;ki2<1000000;ki2++) { for (int j=0;j<3;j++) { int a = K2[j]; } } int after2 = GetTickCount(); int before1 = GetTickCount(); for (int ki1=0;ki1<1000000;ki1++) { for (int j=0;j<3;j++) { int a = K1[j]; } } int after1 = GetTickCount(); // the results: int dif1 = after1-before1; int dif2 = after2-before2; } K1 version (local variable version) speed suppose to be much faster since is defined on stack, …

    • 6 replies
    • 4.7k views
    CodeExplorer
  9. pwnium
    Started by pwnium,

    i tried to write a small program that run some useful tools that i need , unfortunately the program run only in my computer how can i fix that problem , another question ... i'm just a beginner so the i've repeated CreateProcess and ResumeThread so many times i guess am doing this wrong ! please correct me i called this small Program EX_Runner the source code , .386 .model flat, stdcall ;32 bit memory model option casemap :none ;case sensitive include EX_Runner.inc include comdlg32.inc includelib comdlg32.lib .const sla db"\",0 FilterStr db "Executable Files","*.exe",0,0 .data olly db "C:\RCE\RAMODBG v1.1\OLLYDBG.EXE",0 IDA db "C:\RCE\Tools\IDA Pro\IDA…

      • Like
    • 4 replies
    • 5.5k views
  10. LCF-AT
    Started by LCF-AT,

    Hi guys, I am trying to read the resources directory of any target to read the whole content inside but now I have the problem that I dont understand it yet correctly using the structs for them. Example: Below the structs I found for resources IMAGE_RESOURCE_DIRECTORY STRUCT Characteristics dd ? TimeDateStamp dd ? MajorVersion dw ? MinorVersion dw ? NumberOfNamedEntries dw ? NumberOfIdEntries dw ? IMAGE_RESOURCE_DIRECTORY ENDS IMAGE_RESOURCE_DIRECTORY_ENTRY STRUCT union rName RECORD NameIsString:1,NameOffset:31 Name1 dd ? Id dw ? ends union OffsetToData dd ? …

      • Like
    • 58 replies
    • 21.1k views
  11. James Taylor
    Started by James Taylor,

    What is the assembly source code of the following C code? line 1 loading address of array from stack. what the 2 and 3 and others line are doing? Thanks

    • 4 replies
    • 4.7k views
  12. GautamGreat
    Started by GautamGreat,

    Hi, I'm trying to load a dll from a memory section in a compiled program. I written a MultiASM Assembly (Which works pretty well on Window 7), Everything seems Ok on windows 7, but it does not work on win8 and win10. Since I don't know what is wrong, could someone tell what is wrong? Spoiler Solved Here is my ugly assembly, but it works Edit (13 July 2018) I managed to fix the error, Thanks you guys

    • 3 replies
    • 4.9k views
  13. ViL
    Started by ViL,

    helloo! may i ask which assembler is better suited for a < 4k intro for a 32 bits windows? = 3 thaanks beforehand! x3

    • 4 replies
    • 5k views
    Peter Ferrie
  14. James Taylor
    Started by James Taylor,

    is the lea edx, [esp+24] start of array ? and eax, [esp+140] index? then whats add eax, edx doing here and this source code mean ? can you please explain

      • Like
    • 7 replies
    • 9.3k views
    Peter Ferrie
  15. ViL
    Started by ViL,

    Hii! i've stumbled on PNGlib like it's the only png decoder for masm, it is the only one out there? this is the site of PNGlib http://www.madwizard.org/programming/projects/pnglib while it's considerably small, uPNG on C output is even smaller, counting kb; but some pairs of kb makes the difference on tiny intros may i ask if anyone knows another png decoder for masm? any idea is very welcome! x3

  16. CodeExplorer
    Started by CodeExplorer,

    Looking for PreciseTimer.zip - Visual C++ https://www.codeguru.com/cpp/w-p/system/timers/article.php/c5759/Creating-a-HighPrecision-HighResolution-and-Highly-Reliable-Timer-Utilising-Minimal-CPU-Resources.htm Download links: (can't download if from any of them) http://en.pudn.com/Download/item/id/1109294.html http://www.codeforge.com/article/136174#introduction https://download.csdn.net/download/gddsky/267438 It would be great if someone would share PreciseTimer.zip!

      • Thanks
    • 4 replies
    • 4.6k views
    CodeExplorer
  17. ViL

    i was testing quads using multiple colors (gouraud-shade) and for some reason virtual machines either inverts the quad colors or vertex order here's a screenshot i did a test using the same exe in my host and guest virtual machine, at the left of their screen they are all three triangles, both quads at the right also enumerated the vertex order in which they are drawn in the image, you can notice the quads color or vertex are inverted on the virtual machine i tested on VMware and a friend also tested on VirtualBox, the result is the same on both, may i ask why this happens? attached the exe and source, the assembly source is here if that's better …

      • Like
    • 4 replies
    • 4.7k views
  18. ViL

    While looking at Nehe's tutorial for opengl i noticed that they had a masm32 conversion for these examples, the tutorials start here: http://nehe.gamedev.net/tutorial/lessons_01__05/22004/ then quickly realized the links were offline, but fortunately someone made a backup of most examples on github, including masm-converted ones, you can download them from here: https://github.com/gamedev-net/nehe-opengl/ they used some definitions files that weren't included, luckily i found these .def files in the sources of a Northern Dragons' demogroup 4k intro named Trees, it was the only place to get them so i spread them here so you can compile and follow the gr…

    • 1 reply
    • 4.4k views
  19. CodeExplorer
    Started by CodeExplorer,

    Visual C++ code: int processflags = 0|CREATE_SUSPENDED; // Create a child process. if (strlen(environmentstr)>2) { fSuccess = CreateProcess(processname, NULL, NULL, NULL, TRUE, processflags, (LPVOID) chNewEnv, // environment NULL, &siStartInfo, &piProcInfo); } else { fSuccess = CreateProcess(processname, NULL, NULL, NULL, TRUE, processflags, NULL, // No environment NULL, &siStartInfo, &piProcInfo); } If I attach with Olly to the new created process I get this: 02980000 CC INT3 02980001 68 7F23BF77 PUSH 0x77BF237F 02980006 C3 RETN INT3 should be there but shouldn't be actually executed…

      • Thanks
    • 6 replies
    • 5.3k views
  20. CodeExplorer
    Started by CodeExplorer,

    Time in milliseconds of a timer: time1 = when timer started time1 = when timer proc ended time1=9182437 time2=9182437 time1=9182452 The difference is big: 15 ms! I know that 1 millisecond is much for computer performance! I've tested some code and the time in ms was not even 1 ms. uElapse [in] Type: UINT The time-out value, in milliseconds. If uElapse is less than USER_TIMER_MINIMUM (0x0000000A), the timeout is set to USER_TIMER_MINIMUM. If uElapse is greater than USER_TIMER_MAXIMUM (0x7FFFFFFF), the timeout is set to USER_TIMER_MAXIMUM. I need something much better then a timer!

    • 18 replies
    • 8.4k views
    CodeExplorer
  21. ViL

    Hello! i've been looking for a way to add a menu using WinAPI within the same .asm file, without using resource (.rc) files It can be done in C, like explained in this tutorial http://zetcode.com/gui/winapi/menus/ MASM32's User.lib has the same function prototypes in there (CreateMenu, AppendMenuW, SetMenu) This is for two reasons, one is because i'd like them not to be edited/spoted using Resource Editors, the other is that i want to keep everything on one .asm source file (as what i want to do is small enough) I've not seen anyone documenting how to do this before in MASM32 (or even other Win32-targeted compilers) and ran out of ideas trying, any kin…

    • 1 reply
    • 5.3k views
  22. ViL

    hii! i've looked for a way to manually set the libraries that link.exe includes, by default, when i link using: C:\masm32\bin\link.exe /verbose /nologo /subsystem:windows /opt:noref main.obj it says: Start Pass1 Processed /DEFAULTLIB:C:\masm32\lib\user32.lib Processed /DEFAULTLIB:C:\masm32\lib\kernel32.lib Processed /DEFAULTLIB:C:\masm32\lib\gdi32.lib Processed /DEFAULTLIB:C:\masm32\lib\opengl32.lib Processed /DEFAULTLIB:C:\masm32\lib\glu32.lib so i tried setting the /DEFAULTLIB's parameters myself to override them C:\masm32\bin\link.exe /verbose /nologo /subsystem:windows /defaultlib:C:\masm32\lib\user32.lib /opt:noref main.obj (i was intending to j…

      • Like
    • 2 replies
    • 4.5k views
  23. null_endian
    Started by null_endian,

    Does anyone know of a way to edit the bootloader on a Win10 machine to force it to execute arbitrary code when Windows starts up? I'm not sure if this is possible on a new WIn10 box because I know that there are much stricter checks at bootup now. I don't care if it is a one-off as I'm trying to do a specific experiment on MY machine, it doesn't need to apply to all machines. Thanks. PS: Actually, I don't necessarily need to replace the bootloader - this code accomplishes something similar to what I need (I just need code execution control prior to everything else on the system when the OS loads) but it doesn't work for Win10. Looking for something similar.

    • 1 reply
    • 4.8k views
  24. CodeExplorer
    Started by CodeExplorer,

    Remove listbox content Visual C++ ??? I wanna remove all items from listbox, Already tried ResetContent but it doesn't work: CWnd *pWnd = GetDlgItem(IDC_LIST1); CListBox* listbox = static_cast<CListBox*>(pWnd); //dynamic_cast does not work listbox->ResetContent();

    • 4 replies
    • 10.3k views
  25. h4sh3m
    Started by h4sh3m,

    Hi Maybe help someone to create custom loaders ! BR, h4sh3m x64_Simple_Loader_Delphi.rar

    • 7 replies
    • 8.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.