Post: Reading/Writing Process Memory w/ PTRACE
01-23-2017, 10:13 PM #1
Black Panther
Former Staff
(adsbygoogle = window.adsbygoogle || []).push({}); First off, I want to say thanks to 2much4u and Bad ChoicesZ for helping me with all my noob questions when it comes to PS4 shit. They've helped me out a lot so far, but I was wondering if anyone else on this site may have some insight as to whats going wrong, etc.

I have a problem while trying to Read/Write process memory while using PTRACE and I was hoping someone on these forums could end up helping me with it.

What I Have:
CTurts PS4SDK installed on a linux VM
Kernel Payload (Dlclose) in which im building inside of


What I'm Trying to Do:
Using PTRACE I am trying to read/write process memory without any errors
I have the ability to read my process memory without any errors, however when it comes to writing memory, it fails.

I know there is a different method of writing to process memory using proc_rwmem, however I do not want to use this method. I am wanting to stay with PTRACE.[/i]

I am*positive*I am using the correct pid for my process (which is default_mp.elf for call of duty ghosts) because I can read to memory, however cannot write to it.
I am also*positive*that the area of memory that I am attempting to read/write to/from is both readable/writable.*

How I am Defining PTRACE:
    
int ptrace(int req, int pid, void * argsAddr, int data)
{
return syscall(26, req, pid, argsAddr, data);
}

You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked Black Panther for this useful post:

Godsless
01-24-2017, 04:46 AM #2
shawncarnage
Little One
And you made sure to input the ftp code to?
01-24-2017, 02:35 PM #3
Hydrogen
Super Mod
Originally posted by Black
First off, I want to say thanks to 2much4u and Bad ChoicesZ for helping me with all my noob questions when it comes to PS4 shit. They've helped me out a lot so far, but I was wondering if anyone else on this site may have some insight as to whats going wrong, etc.

I have a problem while trying to Read/Write process memory while using PTRACE and I was hoping someone on these forums could end up helping me with it.

What I Have:
CTurts PS4SDK installed on a linux VM
Kernel Payload (Dlclose) in which im building inside of


What I'm Trying to Do:
Using PTRACE I am trying to read/write process memory without any errors
I have the ability to read my process memory without any errors, however when it comes to writing memory, it fails.

I know there is a different method of writing to process memory using proc_rwmem, however I do not want to use this method. I am wanting to stay with PTRACE.[/i]

I am*positive*I am using the correct pid for my process (which is default_mp.elf for call of duty ghosts) because I can read to memory, however cannot write to it.
I am also*positive*that the area of memory that I am attempting to read/write to/from is both readable/writable.*

How I am Defining PTRACE:
    
int ptrace(int req, int pid, void * argsAddr, int data)
{
return syscall(26, req, pid, argsAddr, data);
}

You must login or register to view this content.
01-24-2017, 04:33 PM #4
Hydrogen
Super Mod
Originally posted by Black
First off, I want to say thanks to 2much4u and Bad ChoicesZ for helping me with all my noob questions when it comes to PS4 shit. They've helped me out a lot so far, but I was wondering if anyone else on this site may have some insight as to whats going wrong, etc.

I have a problem while trying to Read/Write process memory while using PTRACE and I was hoping someone on these forums could end up helping me with it.

What I Have:
CTurts PS4SDK installed on a linux VM
Kernel Payload (Dlclose) in which im building inside of


What I'm Trying to Do:
Using PTRACE I am trying to read/write process memory without any errors
I have the ability to read my process memory without any errors, however when it comes to writing memory, it fails.

I know there is a different method of writing to process memory using proc_rwmem, however I do not want to use this method. I am wanting to stay with PTRACE.[/i]

I am*positive*I am using the correct pid for my process (which is default_mp.elf for call of duty ghosts) because I can read to memory, however cannot write to it.
I am also*positive*that the area of memory that I am attempting to read/write to/from is both readable/writable.*

How I am Defining PTRACE:
    
int ptrace(int req, int pid, void * argsAddr, int data)
{
return syscall(26, req, pid, argsAddr, data);
}

You must login or register to view this content.
01-25-2017, 03:03 AM #5
Black Panther
Former Staff
Originally posted by Hydrogen View Post
Z80 gave some advice towards your problem:

9:08 AM - oneman123: @hydrogenNGU if memory, he is trying write to is read only, he should disable CPU write protection . just IDEA Smile


I'd read/write so idk why it's doing this but I'll try that
01-25-2017, 03:55 PM #6
Hydrogen
Super Mod
Originally posted by Black
I'd read/write so idk why it's doing this but I'll try that


You managed to work it out? :p

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo