Categories > Exploiting > Tutorials >
How tOmaKe priNt s ploit iN rUst
Posted
ok guys here we go with a tutorial on how to do print sploit rust (UWPVERSION) for RoBloX
the first step is put this music in the background, really sets the vibe up https://youtu.be/4zZFcoKJ6yc
now im not going to explain how to set up a dll project in rust because it can be overcomplicated for the new developers, so i'll put a link in the description on for an already set-uop porject
project: https://mega.nz/folder/mFx1hBgA#YxHxGaIHt_rDWIl7zjd45A
ok guys now that we have the project set-up, we're going to go into the src folder and into the lib.rs file
there we'll have to import some thingies for uhh use them, then we'll just type out some functions and a dll main, the result will be something like this:
use std::ffi::c_int;
use std::ffi::c_void;
use std::ffi::CString;
use std::os::raw::c_char;
use std::time::Duration;
fn rebase(address: usize) -> usize {
let base = unsafe { winapi::um::libloaderapi::GetModuleHandleA(std::ptr::null()) } as usize;
(address + base) - 0x400000
}
fn print(type_val: u8, content: String) -> c_int {
let address = rebase(0xEF9490);
let content = convert_to_cstring(content);
unsafe {
let func_ptr: extern "C" fn(u8, *const c_char) -> i32 =
Some(std::mem::transmute(address)).unwrap();
let content_ptr = content.as_ptr() as *const c_char;
func_ptr(type_val, content_ptr)
}
}
fn main() {
for i in 0..=3 {
print(i, format!("Hello world from rust printsploit. {}", i));
std::thread::sleep(Duration::from_secs(1));
}
}
#[no_mangle]
pub extern "system" fn DllMain(
mod_handle: winapi::shared::minwindef::HINSTANCE,
reason: u32,
_: *mut c_void,
) -> i32 {
unsafe {
winapi::um::libloaderapi::DisableThreadLibraryCalls(mod_handle);
}
if reason == winapi::um::winnt::DLL_PROCESS_ATTACH {
main();
}
1
}
fn convert_to_cstring(input: String) -> CString {
match CString::new(input) {
Ok(cstring) => cstring,
Err(_) => panic!("Failed to convert &str to CString"),
}
}
now all we hav to do is build this as a 32 bit dll, u can do it with the command cargo build --target i686-pc-windows-msvc --release
now we just inject this into robuck and we get this::
https://cdn.discordapp.com/attachments/1064359813175328891/1111701711900393573/image.png
that's it guyssss hope you enjoyed this mazing rust turoail on how to build a printsploit urself!!!!
keep in mind next roblox uwp update this won't work again cuz the print address will be changed, you'll have to get it yourself if u wanna continue using this maazing software!! u should follow this guy's guide if u want it!! https://forum.wearedevs.net/t/33575
thanks for watching guys, remember lik, sub, hit da bell and remember guys, rust is the future and the ufturue is nwo!!!!!!!!!
partial credits to arad for already having the base of it, you can visit his github repo here: https://github.com/araddev/rustsploit_dll
EDIT: btw yes, this WILL slow down your roblox for 4 seconds while it's printing because it doesn't create a new thread :))))
Cancel
Post
https://cdn.discordapp.com/attachments/1136067487847415848/1146449877660872785/image.png
https://cdn.discordapp.com/attachments/1098921594249814066/1112144294007029932/WRDBanner_Alawapr_1.png
Replied
Oh no someone actually tried it.
Good resource and proof of concept :smil:
Cancel
Post
Replied
BEST CODE, ON TOP, I CONTRIBUTED, RUSTSPLOIT WINNING, RUSTSPLOIT IS THE FUTURE OF ROBLOX EXPLOITING (real) (2023) (working no virus)
Comments
Alawrpar 46 Reputation
Commented
real /cahrharhsharhrs
Cancel
Post
https://cdn.discordapp.com/attachments/695925843834306592/1107453044708356106/image.png
Replied
Doing stuff with rust like this is interesting but seeing how ew the code is, it's put me off.
Comments
Alawrpar 46 Reputation
Commented
you could make this 100x nicer, it was a speedran thing for the jokes
Cancel
Post
Replied
Is this for version 577 or 575?
Comments
Cancel
Post
https://cdn.discordapp.com/attachments/978212409145708565/1119225665649115167/WRD_Siggy.png
"Your code looks like a decompiled roblox script" - Me
Replied
BEST CODE IV EVER SEEN!!!!
Comments
Alawrpar 46 Reputation
Commented
thank :DDDDSDDDD
Cancel
Post
random quote here... 😂
Replied
ive done very little rust and the syntax is confusing asl, but im learning cpp rn so im putting rust to the side
Comments
Alawrpar 46 Reputation
Commented
fair enough, rust is a hard language so it's understandable, specially if your first look at it is a half-assed code that tries to interact with winapi and does funky sh*t
sincerely wish you the best with both languages though, gl 👍
Cancel
Post
Replied
lets skid skiddy skiddy
Cancel
Post
#Road To 10 Rep
https://cdn.discordapp.com/attachments/1091702141871210517/1099702036041318450/WRDBanner_hostedUser_1.png siggy by B00M
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Comments
Alawrpar 46 Reputation
Commented
in all seriousness though, making stuff in rust for roblox is not even that hard, i don't know why people haven't done this before lol. Maybe people already did this but just wasn't released to the public or i didn't hear about it, dk
0
re1oop 91 Reputation
Commented
@Alawrpar Maybe the majority of people just didn't prefer Rust for something like this, which I can understand.
0
Alawrpar 46 Reputation
Commented
@reversed_coffee, tbh same, while it is possible to make something really good in rust, it is harder and/or more tedious than with c/c++
0
re1oop 91 Reputation
Commented
@Alawrpar I completely agree with your statement. Rust is less known and it can require more effort to do certain things in it depending on the user's experience with it.
1