question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I don't understand what to do

See original GitHub issue

I am new to this and I try to learn every day, but I do not understand where to put the code

// Restore original NtOpenFile from external process
LPVOID ntOpenFile = GetProcAddress(LoadLibraryW(L"ntdll"), "NtOpenFile");
if (ntOpenFile) {
    char originalBytes[5];
    memcpy(originalBytes, ntOpenFile, 5);
    WriteProcessMemory(csgoProcessHandle, ntOpenFile, originalBytes, 5, NULL);
}

I appreciate a little more help, to continue learning and testing

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:6

github_iconTop GitHub Comments

8reactions
SpaceR3commented, Jun 27, 2020

are you retarted

thats c++

1reaction
jxian725commented, Jun 28, 2020

Dude you don’t need to put the code anywhere. Just execute the python script and you can use LoadLibrary normally again to inject your stuff

Thank you very much, friend for your answer. I have tested the script and…

File "OneByteLdr.py", line 9 address = csgo.lpBaseOfDll + re.search(rb'.\x1A\xF6\x45\x0C\x20', ^ SyntaxError: invalid syntax

Try this: https://github.com/danielkrupinski/OneByteLdr/issues/5

Read more comments on GitHub >

github_iconTop Results From Across the Web

10 Things to Do When You Don't Know What To Do
2. Accept Discomfort · 3. Realize you aren't alone · 4. Go with the flow · 5. Stop procrastinating · 6. Ask yourself...
Read more >
What To Do When You Don't Know What to Do
Stop thinking it through. Stop making up what might happen. Because that's what's happening here, you're just making it up. Just make the...
Read more >
What do you do when you don't understand something?
1. Sometimes reading it again will help · 2. Ask questions · 3. Figure out the best time for you to learn ·...
Read more >
20 things to do when you don't know what to do
1) Focus on the positives, not the negatives · 2) Meditate · 3) Ask yourself what's the worst that can happen · 4)...
Read more >
What should I do when I can't understand something?
1. If your trouble lies solely in understanding, try writing instructions down in simple language (or draw them) and then try forming a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found