\Device\NUL
There's three type of memory allocation afaik
Stack pointed by CPU stack register, Heap that allocated by the OS, and the static one
\Device\NUL
The address that you inspect might be stack memory pointed by rsp on x64 platform, each Thread on Windows by default has 1MB stack memory
\Device\NUL
ㅤDisabled Account [!] sent a code, it has been re-uploaded as a file
@puburdek Why you're not just using ZwCreateUserProcess ? It's available since vista and much better than ZwCreateProcess
\Device\NUL
@puburdek Why you're not just using ZwCreateUserProcess ? It's available since vista and much better than ZwCreateProcess
And of course, you can just link it directly to ntdll. There's plentry native api headers on internet. I personally use this header for having fun with Native API https://github.com/MiroKaku/Veil
\Device\NUL
@puburdek Why you're not just using ZwCreateUserProcess ? It's available since vista and much better than ZwCreateProcess
Do you really want to develop a kernel driver just for using that or you just want try that API ?
\Device\NUL
@puburdek Why you're not just using ZwCreateUserProcess ? It's available since vista and much better than ZwCreateProcess
https://captmeelo.com/redteam/maldev/2022/05/10/ntcreateuserprocess.html This is some nice POC to execute some executable using NtCreateUserProcess. There's also RtlCreateUserProcess but its meant to use to exec native subsystem not Win32 programs
Rose
Reported to admins.​​​​​​​​​​​
\Device\NUL
Well, the person I replied isn't in this group anymore lmao
Udgeet
Anyone is having c++/c notes
Udgeet
Please send
klimi
Please send
read the pinned message
Thomas
#markdown
Rose
#markdown
If you are posting a single line of code, then embed the code within a single backtick i.e. ` The backtick should be there before the beginning of the line of code and at the end of the line of code. Ex: `cout << "Hello";` If you are posting multiple lines of code, embed the entire source code within three backticks (at the beginning and at the end) on a line of their own. Ex: #include<iostream> int main(){      return 0; } ``` <- Three backticks here
Arman
help me
Arman
i cant write a code
Arman
please anyone have a problem idea
Rose
That's 2/2 warnings; Neda_sh387 is banned! Reasons: 1: non english 2: hello messages
Simple Sorcerer
hi guys How to make a local structure? I found this trick in a large code. The structure is declared as usual, but it is not available in the code. and it turns out that I will communicate with the structure only through functions.
Simple Sorcerer
mylib.c static struct mystruct abc; void create(...){ abc.a = 10; } void add(...){} ... void delete(...){} ===================== mylib.h struct mystruct{ int a; }; void create(...); void add(...); ... void delete(...); ==================== main.c int main(){ struct mystruct asd; // error (how do you make a mistake?) create(); // properly ... return 0; }
Simple Sorcerer
I need this structure to be unavailable outside this library.
klimi
I need this structure to be unavailable outside this library.
one idea that comes to mind is to not include it in .h, and for the function calls just use void* and cast it inside the functions
Simple Sorcerer
there's a little bit more code there, but when you use this biblioteca and use the structure you'll find error: storage size of ‘asdf’ isn’t known buf_t asdf; | ^~~~
Simple Sorcerer
the mistake is different, of course.
Simple Sorcerer
I've never encountered this before.
Simple Sorcerer
https://gitlab.torproject.org/tpo/core/tor/-/tree/main/src/lib/buf?ref_type=heads
Simple Sorcerer
buffers.h and buffers.c
Simple Sorcerer
you can find it on line 92 of the code in buffers.h
Simple Sorcerer
I think I've been very stupid.
Simple Sorcerer
I've been messing around so much, and for some reason when I ask a question, the answer comes back to me............
Simple Sorcerer
this is realized through #define
Chat Boss
ㅤSimple Sorcerer sent a code, it has been re-uploaded as a file
Arman
Help me im not understanding C/C++ is so hard
Arman
help
Arman
please message me
harmony5 🇺🇳 ⌤
What are you having problems with?
Elena
I've been messing around so much, and for some reason when I ask a question, the answer comes back to me............
How will the #define in mylib.c have an impact on mylib.h unless you include the mylib.h header file after the #define. Also all source files that include this header file need to #define PRIVATE_STRUCT for the mystruct definition to be seen which seems like a bad thing to do.
Simple Sorcerer
My example is useless. And is only used to demonstrate an example of work
Brooklyn
Help me im not understanding C/C++ is so hard
Start with basics you can find some good resources in this group
Luca
Hi, do someone know if there are some videochat group for c++ code review? Thanks
Pavel
Hi, do someone know if there are some videochat group for c++ code review? Thanks
Videochat sounds quite inefficient for this type of thing, but there's codereview.stackexchange.com
Luca
Videochat sounds quite inefficient for this type of thing, but there's codereview.stackexchange.com
Video chat like meeting where someone can explain a problem or an architectural question, and some programmers try to figure it out the best solution. For stay in training.
Luca
Try the ot group
On stackexchange.com ?
Brooklyn
No on the off topic of this group
Rose
Offtopic discussions should be done in the C/C++ Offtopic group. Please take your discussion/questions there.
Ighor
delete this bot
use pastebin or read pinned message
El Pepe
learncpp.com
what with C? K&R still good books?
Simple Sorcerer
what with C? K&R still good books?
I don't know. I only studied С++.And I look at the documentation for C on the website gnu.org
Simple Sorcerer
thank you
https://www.gnu.org/manual/manual.html
Simple Sorcerer
thank you
https://www.gnu.org/software/gnu-c-manual/gnu-c-manual.html
Simple Sorcerer
🤝
This is not training. The language documentation. If you forgot something or can’t remember, I think this is what you need. ( I usually do this :D )
secret
Hello there I am a college student and I struggling to learn c language can any one help me how to lern this language mean where should I start from....😅
Rose
Hello there I am a college student and I struggling to learn c language can any one help me how to lern this language mean where should I start from....😅
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
Rose
That's 2/2 warnings; K is banned! Reasons: 1: ad/ot 2: ad
Unreal - Maker
/c
...
I'm trying to program a bot for Minecraft in C++, but I couldn't do it somehow, can you help me guys with a sample code?
...
i found a code while researching on the internet, but it didn't happen when I tried the same protocol in public, but I couldn't understand it, so I decided to get help in the end
...
#paste
Rose
#paste
To share code or error tracebacks, use an online pasting service like: - https://hastebin.com - https://pastebin.com - https://dpaste.org - https://wandbox.org - https://godbolt.org
...
Can you describe a specific problem that you're facing?
and frankly, how to do it. i don't know anything about it, but I know winsock library, a sample code would be very useful
...
minecraft protocol is public, but I'm new to networking
Pavel
and frankly, how to do it. i don't know anything about it, but I know winsock library, a sample code would be very useful
Well, to be able to help people usually need to understand the problem. E.g. if someone asks something like "I tried to build a house, but I couldn't, can you help me". Building a house (or application) is a complex process, many steps could go wrong, people generally don't like to waste the time on explaining something just to get an answer "Yes, I know that, but my problem is not there". For example I can't read your mind, I can't guess what problem you have, I don't have all the context that you've already built in your mind around this problem, and you provided very little information about it, but I can try to guess. So, from what I understood, you got some source code, but it didn't work as intended (I assume it compiled?), so you want to learn how other programmers would approach such a situation with someone elses code? Usually such projects have some discord servers or other ways for communication between developers who work with them. So as a first step I would recommend to find a community around the library you found, or some generic community of people who develop bots for Minecraft, if such exists. And of course any sources of documentation, Minecraft community is usually good at documenting things, so there's a good chance there are some pieces of documentation/articles/posts about writing bots. And if that doesn't work, you can try to invest time investigating and debugging the code, but this is not something one can describe in a short message.