Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- @Project: Dumps any address with corresponding bytes in a program that is compatible with the library "PS3Lib.dll" version 4.3 by iMCSx.
- @Author: BaSs_HaXoR
- @Date: 02/19/15
- @Credits: BaSs_HaXoR, iMCSx, Eddie Mac
- */
- //[REVISED] V2
- //#####################################################################################################################################################################################################################
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.IO;
- using System.Windows.Forms;
- namespace PS3Lib
- {
- class GrabData
- {
- int num = 0;
- public string getCurrentDir()
- {
- string Dir;
- Dir = Directory.GetCurrentDirectory();
- return Dir;
- }
- public void test()
- {
- Clipboard.SetText(getCurrentDir());
- }
- public string retStrHex(uint decValue)
- {
- string hexValue = decValue.ToString("X");
- return hexValue;
- }
- public string retStrHex(ulong decValue)
- {
- string hexValue = decValue.ToString("X");
- return hexValue;
- }
- public void grabData(uint yourAddress, byte[] yourBytes)
- {
- string stringbytes;
- stringbytes = BitConverter.ToString(yourBytes);
- stringbytes = stringbytes.Replace("-", " 0x");
- stringbytes = stringbytes.Replace(" ", ", ");
- stringbytes = "0x" + stringbytes;
- try
- {
- string outx = System.IO.File.ReadAllText(getCurrentDir() + "/BaSsWazHere.txt");
- System.IO.File.WriteAllText(getCurrentDir() + "/BaSsWazHere.txt", outx + Environment.NewLine + "PS3.SetMemory(0x" + retStrHex(yourAddress) + ", new byte[] " + "{ " + stringbytes + " }; /* PwN3D By: BaSs_HaXoR */" + Environment.NewLine);
- num = num + 1;
- }
- catch
- {
- num = 0;
- System.IO.File.WriteAllText(getCurrentDir() + "/BaSsWazHere.txt", @"########################################################################################
- Yb dP 8 w .d88b. w w dP'Yb
- Yb db dP 8d8b. .d88 w8ww YPwww. .d88b .d8b 8 8 8d8b w w8ww Yb dP ' d8
- YbdPYbdP 8P Y8 8 8 8 d8 8.dP' 8 8b d8 8P 8 8 YbdP dP
- YP YP 8 8 `Y88 Y8P `Y88P' `Y88P `Y8P `Y8P8 8 8 Y8P dP w
- dP x
- ########################################################################################
- Pwn3D By: BaSs_HaXoR
- Special Thanks To Eddie Mac
- Date PwN3D: " + DateTime.Now.ToString("M/d/yyyy") + @"
- ########################################################################################
- ____ __ __ __ __ __ ____
- /\ _`\ /\ \ __/\ \/\ \/\ \ /'__`\ /\ _`\
- \ \ \L\ \ \ \/\ \ \ \ \ `\\ \/\_\L\ \\ \ \/\ \
- \ \ ,__/\ \ \ \ \ \ \ \ , ` \/_/_\_<_\ \ \ \ \
- \ \ \/ \ \ \_/ \_\ \ \ \`\ \/\ \L\ \\ \ \_\ \
- \ \_\ \ `\___x___/\ \_\ \_\ \____/ \ \____/
- \/_/ '\/__//__/ \/_/\/_/\/___/ \/___/
- ########################################################################################
- Your PwNaGe will start here: " + Environment.NewLine + Environment.NewLine + "PS3.SetMemory(0x" + retStrHex(yourAddress) + ", new byte[] " + "{ " + stringbytes + " }; /* PwN3D By: BaSs_HaXoR */ " + Environment.NewLine);
- num = num + 1;
- //File Doesn't exist yet....
- }
- }
- public void grabData(ulong yourAddress, byte[] yourBytes)
- {
- int num = 0;
- string stringbytes;
- stringbytes = BitConverter.ToString(yourBytes);
- stringbytes = stringbytes.Replace("-", " 0x");
- stringbytes = stringbytes.Replace(" ", ", ");
- stringbytes = "0x" + stringbytes;
- try
- {
- string outx = System.IO.File.ReadAllText(getCurrentDir() + "/BaSsWazHere.txt");
- System.IO.File.WriteAllText(getCurrentDir() + "/BaSsWazHere.txt", outx + Environment.NewLine + "PS3.SetMemory(0x" + retStrHex(yourAddress) + ", new byte[] " + "{ " + stringbytes + " }; /* PwN3D By: BaSs_HaXoR */" + Environment.NewLine);
- num = num++;
- }
- catch
- {
- System.IO.File.WriteAllText(getCurrentDir() + "/BaSsWazHere.txt", @"########################################################################################
- Yb dP 8 w .d88b. w w dP'Yb
- Yb db dP 8d8b. .d88 w8ww YPwww. .d88b .d8b 8 8 8d8b w w8ww Yb dP ' d8
- YbdPYbdP 8P Y8 8 8 8 d8 8.dP' 8 8b d8 8P 8 8 YbdP dP
- YP YP 8 8 `Y88 Y8P `Y88P' `Y88P `Y8P `Y8P8 8 8 Y8P dP w
- dP x
- ########################################################################################
- Pwn3D By: BaSs_HaXoR
- Special Thanks To Eddie Mac
- Date PwN3D: " + DateTime.Now.ToString("M/d/yyyy") + @"
- ########################################################################################
- ____ __ __ __ __ __ ____
- /\ _`\ /\ \ __/\ \/\ \/\ \ /'__`\ /\ _`\
- \ \ \L\ \ \ \/\ \ \ \ \ `\\ \/\_\L\ \\ \ \/\ \
- \ \ ,__/\ \ \ \ \ \ \ \ , ` \/_/_\_<_\ \ \ \ \
- \ \ \/ \ \ \_/ \_\ \ \ \`\ \/\ \L\ \\ \ \_\ \
- \ \_\ \ `\___x___/\ \_\ \_\ \____/ \ \____/
- \/_/ '\/__//__/ \/_/\/_/\/___/ \/___/
- ########################################################################################
- Your PwNaGe will start here: " + Environment.NewLine + Environment.NewLine + "PS3.SetMemory(0x" + retStrHex(yourAddress) + ", new byte[] " + "{ " + stringbytes + " }; /* PwN3D By: BaSs_HaXoR */" + Environment.NewLine);
- num = num++;
- }
- }
- public void grabData(uint yourAddress, ulong yourulong)
- {
- int num = 0;
- string strulong = Convert.ToString(yourulong);
- try
- {
- string outx = System.IO.File.ReadAllText(getCurrentDir() + "/BaSsWazHere.txt");
- System.IO.File.WriteAllText(getCurrentDir() + "/BaSsWazHere.txt", outx + Environment.NewLine + "PS3.SetMemory(0x" + retStrHex(yourAddress) + ", new byte[] " + "{ " + yourulong + " }; /* PwN3D By: BaSs_HaXoR */" + Environment.NewLine);
- num = num++;
- }
- catch
- {
- System.IO.File.WriteAllText(getCurrentDir() + "/BaSsWazHere.txt", @"########################################################################################
- Yb dP 8 w .d88b. w w dP'Yb
- Yb db dP 8d8b. .d88 w8ww YPwww. .d88b .d8b 8 8 8d8b w w8ww Yb dP ' d8
- YbdPYbdP 8P Y8 8 8 8 d8 8.dP' 8 8b d8 8P 8 8 YbdP dP
- YP YP 8 8 `Y88 Y8P `Y88P' `Y88P `Y8P `Y8P8 8 8 Y8P dP w
- dP x
- ########################################################################################
- Pwn3D By: BaSs_HaXoR
- Special Thanks To Eddie Mac
- Date PwN3D: " + DateTime.Now.ToString("M/d/yyyy") + @"
- ########################################################################################
- ____ __ __ __ __ __ ____
- /\ _`\ /\ \ __/\ \/\ \/\ \ /'__`\ /\ _`\
- \ \ \L\ \ \ \/\ \ \ \ \ `\\ \/\_\L\ \\ \ \/\ \
- \ \ ,__/\ \ \ \ \ \ \ \ , ` \/_/_\_<_\ \ \ \ \
- \ \ \/ \ \ \_/ \_\ \ \ \`\ \/\ \L\ \\ \ \_\ \
- \ \_\ \ `\___x___/\ \_\ \_\ \____/ \ \____/
- \/_/ '\/__//__/ \/_/\/_/\/___/ \/___/
- ########################################################################################
- Your PwNaGe will start here: " + Environment.NewLine + Environment.NewLine + "PS3.SetMemory(0x" + retStrHex(yourAddress) + ", new byte[] " + "{ " + yourulong + " }; /* PwN3D By: BaSs_HaXoR */" + Environment.NewLine);
- num = num++;
- }
- }
- public void grabData(uint yourAddress, string hex, EndianType Type)
- {
- char quotation = '"';
- int num = 0;
- try
- {
- string outx = System.IO.File.ReadAllText(getCurrentDir() + "/BaSsWazHere.txt"); //"PS3.SetMemory(0x" + retStrHex(yourAddress) + ", new byte[] " + "{ " + yourulong + "};" + Environment.NewLine);
- System.IO.File.WriteAllText(getCurrentDir() + "/BaSsWazHere.txt", outx + Environment.NewLine + "PS3.WriteString(0x" + retStrHex(yourAddress) + ", (" + quotation + hex + quotation + " );" + " //EndianType: " + Type + " /* PwN3D By: BaSs_HaXoR */" + Environment.NewLine);
- num = num++;
- }
- catch
- {
- System.IO.File.WriteAllText(getCurrentDir() + "/BaSsWazHere.txt", @"########################################################################################
- Yb dP 8 w .d88b. w w dP'Yb
- Yb db dP 8d8b. .d88 w8ww YPwww. .d88b .d8b 8 8 8d8b w w8ww Yb dP ' d8
- YbdPYbdP 8P Y8 8 8 8 d8 8.dP' 8 8b d8 8P 8 8 YbdP dP
- YP YP 8 8 `Y88 Y8P `Y88P' `Y88P `Y8P `Y8P8 8 8 Y8P dP w
- dP x
- ########################################################################################
- Pwn3D By: BaSs_HaXoR
- Special Thanks To Eddie Mac
- Date PwN3D: " + DateTime.Now.ToString("M/d/yyyy") + @"
- ########################################################################################
- ____ __ __ __ __ __ ____
- /\ _`\ /\ \ __/\ \/\ \/\ \ /'__`\ /\ _`\
- \ \ \L\ \ \ \/\ \ \ \ \ `\\ \/\_\L\ \\ \ \/\ \
- \ \ ,__/\ \ \ \ \ \ \ \ , ` \/_/_\_<_\ \ \ \ \
- \ \ \/ \ \ \_/ \_\ \ \ \`\ \/\ \L\ \\ \ \_\ \
- \ \_\ \ `\___x___/\ \_\ \_\ \____/ \ \____/
- \/_/ '\/__//__/ \/_/\/_/\/___/ \/___/
- ########################################################################################
- Your PwNaGe will start here: " + Environment.NewLine + Environment.NewLine + "PS3.SetMemory(0x" + retStrHex(yourAddress) + ", (" + quotation + hex + quotation + " );" + " //EndianType: " + Type + " /* PwN3D By: BaSs_HaXoR */" + Environment.NewLine);
- num = num++;
- }
- }
- public void grabData(ulong yourAddress, string hex, EndianType Type)
- {
- char quotation = '"';
- int num = 0;
- try
- {
- string outx = System.IO.File.ReadAllText(getCurrentDir() + "/BaSsWazHere.txt");
- System.IO.File.WriteAllText(getCurrentDir() + "/BaSsWazHere.txt", outx + Environment.NewLine + "PS3.WriteString(0x" + retStrHex(yourAddress) + ", (" + quotation + hex + quotation + " );" + " //EndianType: " + Type + " /* PwN3D By: BaSs_HaXoR */" + Environment.NewLine);
- num = num++;
- }
- catch
- {
- System.IO.File.WriteAllText(getCurrentDir() + "/BaSsWazHere.txt", @"########################################################################################
- Yb dP 8 w .d88b. w w dP'Yb
- Yb db dP 8d8b. .d88 w8ww YPwww. .d88b .d8b 8 8 8d8b w w8ww Yb dP ' d8
- YbdPYbdP 8P Y8 8 8 8 d8 8.dP' 8 8b d8 8P 8 8 YbdP dP
- YP YP 8 8 `Y88 Y8P `Y88P' `Y88P `Y8P `Y8P8 8 8 Y8P dP w
- dP x
- ########################################################################################
- Pwn3D By: BaSs_HaXoR
- Special Thanks To Eddie Mac
- Date PwN3D: " + DateTime.Now.ToString("M/d/yyyy") + @"
- ########################################################################################
- ____ __ __ __ __ __ ____
- /\ _`\ /\ \ __/\ \/\ \/\ \ /'__`\ /\ _`\
- \ \ \L\ \ \ \/\ \ \ \ \ `\\ \/\_\L\ \\ \ \/\ \
- \ \ ,__/\ \ \ \ \ \ \ \ , ` \/_/_\_<_\ \ \ \ \
- \ \ \/ \ \ \_/ \_\ \ \ \`\ \/\ \L\ \\ \ \_\ \
- \ \_\ \ `\___x___/\ \_\ \_\ \____/ \ \____/
- \/_/ '\/__//__/ \/_/\/_/\/___/ \/___/
- ########################################################################################
- Your PwNaGe will start here: " + Environment.NewLine + Environment.NewLine + "PS3.SetMemory(0x" + "PS3.WriteString(0x" + retStrHex(yourAddress) + ", (" + quotation + hex + quotation + " );" + " //EndianType: " + Type + " /* PwN3D By: BaSs_HaXoR */" + Environment.NewLine);
- num = num++;
- }
- }
- }
- }
- //#####################################################################################################################################################################################################################
- //BaSs_HaXoR
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement