create account

Alternative Ways to Get Process Heap by ntstatus

View this thread on: hive.blogpeakd.comecency.com
· @ntstatus · (edited)
Alternative Ways to Get Process Heap
[![processheap.png](https://images.ecency.com/DQmW2Q22i8H6uEBfWnR1yTv5QUg4LXQP38mLkWsLr7tWGKy/processheap.png)](https://d.tube/v/ntstatus01/QmRTBV7p7Vb5eEd2aiKHqYjKGAUuBbCmdS3VeeyAk3Sdhx)

[DTube Video Link](https://d.tube/#!/v/ntstatus01/QmRTBV7p7Vb5eEd2aiKHqYjKGAUuBbCmdS3VeeyAk3Sdhx)

```c
#include <Windows.h>
#include <winternl.h>

inline PPEB NtCurrentPeb() { return NtCurrentTeb()->ProcessEnvironmentBlock; }

int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow)
{
	//Method 1
	HANDLE procHeap1 = GetProcessHeap();

	// Method 2
	PVOID procParamAddr = &(NtCurrentPeb()->ProcessParameters);
	HANDLE procHeap2= *(PVOID*)((PUCHAR)procParamAddr + sizeof(PVOID) * 2); 

	return 0; 
}
```
Please Vote this post if you like it.
Please Follow me if you like my posts.
If you have any questions about this post, ask in comments.
Follow me on : 
     [DTube](https://d.tube/#!/c/ntstatus01)
👍  
👎  
properties (23)
authorntstatus
permlinkalternative-ways-to-get-process
categoryprogramming
json_metadata{"links":["https://d.tube/v/ntstatus01/QmRTBV7p7Vb5eEd2aiKHqYjKGAUuBbCmdS3VeeyAk3Sdhx","https://d.tube/#!/v/ntstatus01/QmRTBV7p7Vb5eEd2aiKHqYjKGAUuBbCmdS3VeeyAk3Sdhx","https://d.tube/#!/c/ntstatus01"],"image":["https://images.ecency.com/DQmW2Q22i8H6uEBfWnR1yTv5QUg4LXQP38mLkWsLr7tWGKy/processheap.png"],"tags":["programming","windows","dtube"],"app":"ecency/3.0.19-vision","format":"markdown+html"}
created2021-09-18 16:31:06
last_update2021-09-22 20:39:39
depth0
children1
last_payout2021-09-25 16:31:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length930
author_reputation5,617,331,478
root_title"Alternative Ways to Get Process Heap"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id106,384,752
net_rshares1,785,923,913
author_curate_reward""
vote details (2)
@gangstalking ·
Electronic-terrorism, voice to skull and neuro monitoring on Hive and Steem. You can ignore this, but your going to wish you didnt soon. This is happening whether you believe it or not. https://ecency.com/fyrstikken/@fairandbalanced/i-am-the-only-motherfucker-on-the-internet-pointing-to-a-direct-source-for-voice-to-skull-electronic-terrorism
👎  
properties (23)
authorgangstalking
permlinkre-ntstatus-alternative-ways-to-get-process-20210918t163113374z
categoryprogramming
json_metadata{"app":"hive-bot/0.6.3"}
created2021-09-18 16:31:15
last_update2021-09-18 16:31:15
depth1
children0
last_payout2021-09-25 16:31:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length343
author_reputation-67,597,107,868,724
root_title"Alternative Ways to Get Process Heap"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id106,384,753
net_rshares-23,001,481,020
author_curate_reward""
vote details (1)