Jump to content
Tuts 4 You

Forums

  1. Community Links

    1. Terms, Privacy Policy & Frequently Asked Questions   (244,892 visits to this link)

      Very important! Please read before sign up and posting...

  2. Community Discussions

    1. Site Bug Reports and Feedback

      Bugs, feedback and ideas regarding this site...

      2.3k
      posts
  3. Developers Forums

    1. Programming and Coding

      Programming and coding tips, help and solutions...

      12.7k
      posts
    2. Programming Resources

      Share an interesting blog, news page or other resource...

      417
      posts
    3. Software Security

      Securing your software against reverse engineering...

      927
      posts
  4. Reverse Code Engineering

    1. Challenge of Reverse Engineering

      Try a challenge or contribute your own, any platform or operating system...

      14.6k
      posts
    2. Hardware Reverse Engineering

      Reverse engineering of circuitry hardware and firmware...

      229
      posts
    3. Network Security

      Discussions on network security, holes, exploits and other issues...

      452
      posts
    4. Malware Reverse Engineering

      Debugging, disassembling and documenting interesting malware...

      1.7k
      posts
    5. Reverse Engineering Articles

      Share an interesting blog, news page or other RE related site...

      2.5k
      posts
    6. Employment and Careers

      Discussions on employment and career paths in the industry...

      197
      posts
  5. Community Projects

    1. Scylla Imports Reconstruction

      Development and support forum for the Scylla project...

      506
      posts
    2. x64dbg

      An open-source x64/x32 debugger for windows...

      1.3k
      posts
    3. Future Community Projects

      Looking for support and interested partners for a future project?

      148
      posts
    4. Community Projects Archive

      Old and inactive projects moved to long term support...

      820
      posts
  • Member Statistics

    25,384
    Total Members
    7,713
    Most Online
    pmelinda
    Newest Member
    pmelinda
    Joined
  • Posts

    • Luca91
      Hi all, this is my analysis of GanDiao.sys, an ancient kernel driver based malware. It only works in WinXP as it is unsigned.  This driver was used by various malware families and it allowed any userland application to kill other protected processes. This doc also includes a custom userland app source code to use GanDiao and test its capabilities. ENGLiSH VERSiON: http://lucadamico.dev/papers/malware_analysis/GanDiao.pdf iTALiAN VERSiON: https://www.lucadamico.dev/papers/malware_analysis/GanDiao_ITA.pdf As usual, I'm also attaching both PDF files here, just in case.  Enjoy. GanDiao.pdf GanDiao_ITA.pdf
    • adoxa
      Use async and await. // sleep time expects milliseconds async function sleep (time) { await new Promise((resolve) => setTimeout(resolve, time)); } window.addEventListener('load', async (event) => { await sleep(500); ...my code... });  
    • LCF-AT
      Hi, thanks for checking. I have big differences using Brave / Chromium and Firefox with my script. I tried this now. I disabled uBO completely from both browsers and then I disabled all cookies (Firefox settings) for that specific website and in Brave too. In case of Firefox my script does not create a button but in Brave it does. Why this? If I allow cookies on that website in Firefox then it works and my script does create the button. Really strange behaving. Do you have any explanation for this? Brave: Block All Cookies | no uBO | My Script | = Working to create button Firefox: Block All Cookies | no uBO | My Script | = Failed to create button (Uncaught TypeError: document.getElementById(...) is null) It does not get the element by ID in FF. By the way, the does not work better or at all. It does not work if I use it instead of "load". Somehow pretty frustrating right now not getting it work for both browser yet. No idea how to deal with that.   EDIT: I see problem when using... window.addEventListener('load', (event) => { ...my code... }); ...so sometimes it works sometimes not, its like 50/50. Now I was looking for some sleep function I could place at the top in my script and found just this one... // sleep time expects milliseconds function sleep (time) { return new Promise((resolve) => setTimeout(resolve, time)); } // Usage! sleep(500).then(() => { // Do something after the sleep! }); ....and if I se this function with sleep of 1 seconds and let execute my code inside then it works! So the problem is that I need to wait a while longer in Firefox (not in Brave) to find that element as you did mention already. Seems I have to work with sleep functions etc. Question: Is there also a method to sleep at any line I want (like in coding you call sleep function with time X and in this time all stops before next code get executed / no threads)? The problem is I have to put all my code inside of this sleep function but I would prefer to stop right there. Otherwise if you have any other and better ideas how to tell JS to sleep or how to continue after website and all components are fully loaded then tell me. Thanks. greetz
    • Kanes
      Your examples work fine. I guess the issue is that you have ublock set too strictly, blocking even javascript. just add an exception for the page or disable javascript blocking in the settings. Testing in a restrictive environment probably isn’t the best way to practice. and  for "document.getElementById(...) is null", that's normal if the element isn't found. So the issue could be related to timing for example, if the element is loaded dynamically and the check happens before it has been created. You could try using 'DOMContentLoaded' instead of 'load'.  
    • LCF-AT
      OK, so I have this problem trying to find a element by ID which is there but I get this error in Firefox... Uncaught TypeError: document.getElementById(...) is null ....if I try to execute a simple command.... let url = document.getElementById("url").querySelector("source").src; if (url) { console.log(url); }else{ console.log("Failed to find url ID element!"); return } ...so it does not get the element but its there. I don't understand that. I found another strange thing. So if I use the debugger in browser to set BP on the line above then it works to read the element and source. Pretty strange! No idea what the problem is and why it works in debug mode and not in normal mode in Firefox.   greetz
  • Popular Contributors

    1. 1
      lovejoy226
      lovejoy226
      30
    2. 2
      jackyjask
      jackyjask
      12
    3. 3
      CodeExplorer
      CodeExplorer
      12
    4. 4
      VB56390
      VB56390
      9
    5. 5
      Kanes
      Kanes
      9
  • Files

  • File Comments

  • Tell a friend

    Love Tuts 4 You? Tell a friend!
×
×
  • Create New...