Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: a0zhar/libdebug
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.0.0
Choose a base ref
...
head repository: a0zhar/libdebug
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Apr 16, 2024

  1. Unfinished Console Scan

    a0zhar authored Apr 16, 2024
    Copy the full SHA
    fa2e6a2 View commit details

Commits on Apr 21, 2024

  1. Copy the full SHA
    e3ece81 View commit details
  2. New Release, i guess!

    a0zhar committed Apr 21, 2024
    Copy the full SHA
    1ad7bcd View commit details
  3. Changes and Improvements

    Code cleanup performed on following files: PS4DBG.Console.cs, PS4DBG.cs, PS4DBG.Debug.cs, PS4DBG.Kernel.cs, PS4DBG.Proc.cs, DBG.Printing.cs, Enums.cs, Registers.cs, Process.cs
    a0zhar committed Apr 21, 2024
    Copy the full SHA
    16e7ef4 View commit details
  4. Changes and Improvements

    I fully commented the GetThreadList() function defined inside of the file PS4DBG.Debug.cs, and i added return value to the function comment.
    a0zhar committed Apr 21, 2024
    Copy the full SHA
    1f597e1 View commit details
  5. Changes and Improvements

    I fully commented the code of the function SendCMDPacket() defined inside of PS4DBG.cs, an rewrite of it is coming soon!.
    a0zhar committed Apr 21, 2024
    Copy the full SHA
    ad04f8e View commit details
  6. New Function Added!

    I made a DebugPrintWarning() function, which is defined inside of the file where DebugPrint() is located. This new function can be used to log warnings!
    a0zhar committed Apr 21, 2024
    Copy the full SHA
    7290efb View commit details
  7. Update PS4DBG.cs

    I reorganized/restructured the entire file and it's code.
    I converted GetLibraryDebugVersion() function to a arrow-function.
    a0zhar committed Apr 21, 2024
    Copy the full SHA
    c92ff41 View commit details
  8. Update PS4DBG.cs

    I rewrote the logic for both the Disconnect and Connect functions, and added debug printing to both of them.
    a0zhar committed Apr 21, 2024
    Copy the full SHA
    0087fac View commit details
  9. Update PS4DBG.cs

    Fixed the function comment for SendCMDPacket function!
    a0zhar committed Apr 21, 2024
    Copy the full SHA
    1efc6da View commit details
  10. Update PS4DBG.Debug.cs

    I commented the functions ChangeWatchpoint(), and ChangeBreakPoint()! Then i made some changes to the exception message in both functions, in an attempt to make it more understandable.
    a0zhar committed Apr 21, 2024
    Copy the full SHA
    1f3f9b5 View commit details
  11. Update PS4DBG.Debug.cs

    I performed some code cleanup.
    I rewrote the (function description) comments for the following functions: ProcessStop(), ProcessKill(), ProcessResume(), and DetachDebugger().
    I added commenting to following functions: ProcessStop(), ProcessKill(), and ProcessResume().
    a0zhar committed Apr 21, 2024
    Copy the full SHA
    b499bdc View commit details
  12. Update PS4DBG.cs

    Two new functions added! boolean version of the CheckConnected() and CheckDebugging() functions, that can now be used in if-statements.
    a0zhar committed Apr 21, 2024
    Copy the full SHA
    e271300 View commit details
  13. Update Process.cs

    Reorganized/Restructured the code.
    a0zhar committed Apr 21, 2024
    Copy the full SHA
    5faede3 View commit details
  14. Update PS4DBG.Enums.cs

    Renamed Enums.cs to PS4DBG.Enums.cs before moving it to the PS4DBG directory.
    Added a comment to the VM_PROTECTIONS enum, and commented each one of it's members.
    Added a comment to the WATCHPT_BREAKTYPE enum, and redid the pre-existing comments added to it's members.
    Added a comment to the WATCHPT_LENGTH enum, and commented each one of it's members.
    a0zhar committed Apr 21, 2024
    Copy the full SHA
    4c8a988 View commit details
  15. Update Process.cs

    Added a comment to the ProcessInfo structure and commented it's members.
    Added a comment to the ThreadInfo structure and commented it's members.
    Added a comment to the MemoryEntry class and commented it's members.
    a0zhar committed Apr 21, 2024
    Copy the full SHA
    1611ff8 View commit details
  16. Update Process.cs

    Added comment to the ProcessList class variable <processes>.
    Rewrote the comment added for the ProcessList Constructor summary.
    Commented the code of the ProcessList Constructor.
    Did some minor changes to FindProcess, and the first FindEntry function.
    a0zhar committed Apr 21, 2024
    Copy the full SHA
    b11164a View commit details

Commits on Apr 23, 2024

  1. Update PS4DBG.cs

    I fixed SendCMDPacket to now handle singly bytes correctly.
    a0zhar committed Apr 23, 2024
    Copy the full SHA
    d6b2cbf View commit details
  2. Create PS4DBG.cs

    Initial upload of the PS4DBG.cs file, that's been deobfuscated twice and decompiled! Changes made is: Fixed if-else if chain in ScanProcess
    a0zhar authored Apr 23, 2024
    Copy the full SHA
    634dbcd View commit details
  3. Copy the full SHA
    744908b View commit details
  4. Copy the full SHA
    4ea2322 View commit details
  5. Update PS4DBG.cs

    New function added! DebuggerThread
    a0zhar committed Apr 23, 2024
    Copy the full SHA
    c01947f View commit details
  6. Create REVERSED.md

    Markdown file, that will contain reverse engineered functions taken from the latest libdebug release made by the legend ctn123
    a0zhar committed Apr 23, 2024
    Copy the full SHA
    84c313b View commit details
  7. Update REVERSED.md

    Total of two functions added! 1) The FindPlaystation function, and the GetProcessList function. Both of which has been refactored by me to make them more easy to understand
    a0zhar committed Apr 23, 2024
    Copy the full SHA
    9e7cf6b View commit details

Commits on Apr 26, 2024

  1. Update Registers.cs

    All structs and enums commented, including every member.
    a0zhar authored Apr 26, 2024
    Copy the full SHA
    c8b8d4f View commit details
  2. Update Registers.cs

    Fixed all issues!
    a0zhar authored Apr 26, 2024
    Copy the full SHA
    681005f View commit details
15 changes: 12 additions & 3 deletions DBG.Printing.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
using System;
using System;
using System.Runtime.CompilerServices;

namespace libdebug {

public partial class PS4DBG {

/// <summary>
/// Print's message in following format: From [Name of the Function from where this is used in]() - [Message Here]
/// </summary>
public static void DebugPrint(string message, [CallerMemberName] string callerName = "")
public static void DebugPrint(string message, [CallerMemberName] string callerName = "")
=> Console.WriteLine($"From {callerName}() - {message}");

/// <summary>
/// Print's warning in following format: WARNING! In [Function Name]() - [Message here]
/// </summary>
public static void DebugPrintWarning(string message, [CallerMemberName] string callerName = "")
=> Console.WriteLine($"WARNING! In {callerName}() - {message}");

}
}
}
136 changes: 68 additions & 68 deletions Helpers/CompareTypes.cs → Helpers/CompareTypes.cs.bak.txt
Original file line number Diff line number Diff line change
@@ -1,68 +1,68 @@
namespace libdebug {

/// <summary>
/// Different types of comparisons during memory scans
/// </summary>
public enum ScanCompareType : byte {

/// <summary>
/// Compare for exact value
/// </summary>
ExactValue = 0,

/// <summary>
/// Compare for fuzzy value
/// </summary>
FuzzyValue,

/// <summary>
/// Compare for value greater than a specified value
/// </summary>
BiggerThan,

/// <summary>
/// Compare for value smaller than a specified value
/// </summary>
SmallerThan,

/// <summary>
/// Compare for value within a specified range
/// </summary>
ValueBetween,

/// <summary>
/// Compare for increased value
/// </summary>
IncreasedValue,

/// <summary>
/// Compare for increased value by a specified amount
/// </summary>
IncreasedValueBy,

/// <summary>
/// Compare for decreased value
/// </summary>
DecreasedValue,

/// <summary>
/// Compare for decreased value by a specified amount
/// </summary>
DecreasedValueBy,

/// <summary>
/// Compare for changed value</summary>
ChangedValue,

/// <summary>
/// Compare for unchanged value
/// </summary>
UnchangedValue,

/// <summary>
/// Compare for unknown initial value
/// </summary>
UnknownInitialValue
};

}
namespace libdebug {

/// <summary>
/// Different types of comparisons during memory scans
/// </summary>
public enum ScanCompareType : byte {

/// <summary>
/// Compare for exact value
/// </summary>
ExactValue = 0,

/// <summary>
/// Compare for fuzzy value
/// </summary>
FuzzyValue,

/// <summary>
/// Compare for value greater than a specified value
/// </summary>
BiggerThan,

/// <summary>
/// Compare for value smaller than a specified value
/// </summary>
SmallerThan,

/// <summary>
/// Compare for value within a specified range
/// </summary>
ValueBetween,

/// <summary>
/// Compare for increased value
/// </summary>
IncreasedValue,

/// <summary>
/// Compare for increased value by a specified amount
/// </summary>
IncreasedValueBy,

/// <summary>
/// Compare for decreased value
/// </summary>
DecreasedValue,

/// <summary>
/// Compare for decreased value by a specified amount
/// </summary>
DecreasedValueBy,

/// <summary>
/// Compare for changed value</summary>
ChangedValue,

/// <summary>
/// Compare for unchanged value
/// </summary>
UnchangedValue,

/// <summary>
/// Compare for unknown initial value
/// </summary>
UnknownInitialValue
};

}
134 changes: 67 additions & 67 deletions Helpers/ValueTypes.cs → Helpers/ValueTypes.cs.bak.txt
Original file line number Diff line number Diff line change
@@ -1,67 +1,67 @@
namespace libdebug {

/// <summary>
/// Different types of values during memory scans
/// </summary>
public enum ScanValueType : byte {
/// <summary>
/// Unsigned 8-bit integer value
/// </summary>
valTypeUInt8 = 0,

/// <summary>
/// Signed 8-bit integer value
/// </summary>
valTypeInt8,

/// <summary>
/// Unsigned 16-bit integer value
/// </summary>
valTypeUInt16,

/// <summary>
/// Signed 16-bit integer value
/// </summary>
valTypeInt16,

/// <summary>
/// Unsigned 32-bit integer value
/// </summary>
valTypeUInt32,

/// <summary>
/// Signed 32-bit integer value
/// </summary>
valTypeInt32,

/// <summary>
/// Unsigned 64-bit integer value
/// </summary>
valTypeUInt64,

/// <summary>
/// Signed 64-bit integer value
/// </summary>
valTypeInt64,

/// <summary>
/// Floating point value
/// </summary>
valTypeFloat,

/// <summary>
/// Double precision floating point value
/// </summary>
valTypeDouble,

/// <summary>
/// Array of bytes value
/// </summary>
valTypeArrBytes,

/// <summary>
/// String value
/// </summary>
valTypeString
};
}
namespace libdebug {

/// <summary>
/// Different types of values during memory scans
/// </summary>
public enum ScanValueType : byte {
/// <summary>
/// Unsigned 8-bit integer value
/// </summary>
valTypeUInt8 = 0,

/// <summary>
/// Signed 8-bit integer value
/// </summary>
valTypeInt8,

/// <summary>
/// Unsigned 16-bit integer value
/// </summary>
valTypeUInt16,

/// <summary>
/// Signed 16-bit integer value
/// </summary>
valTypeInt16,

/// <summary>
/// Unsigned 32-bit integer value
/// </summary>
valTypeUInt32,

/// <summary>
/// Signed 32-bit integer value
/// </summary>
valTypeInt32,

/// <summary>
/// Unsigned 64-bit integer value
/// </summary>
valTypeUInt64,

/// <summary>
/// Signed 64-bit integer value
/// </summary>
valTypeInt64,

/// <summary>
/// Floating point value
/// </summary>
valTypeFloat,

/// <summary>
/// Double precision floating point value
/// </summary>
valTypeDouble,

/// <summary>
/// Array of bytes value
/// </summary>
valTypeArrBytes,

/// <summary>
/// String value
/// </summary>
valTypeString
};
}
Loading