mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-23 12:37:45 +00:00
argcracker: Prefix with novus- and add usage guide when no args are used
This commit is contained in:
parent
0f75e9730c
commit
7f15ef9fd7
3 changed files with 19 additions and 9 deletions
|
@ -1,18 +1,23 @@
|
|||
# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
add_executable(argcracker src/main.cpp src/tickcount.cpp)
|
||||
target_link_libraries(argcracker PUBLIC Qt6::Core Qt6::Core5Compat ${LIBRARIES} physis z)
|
||||
target_include_directories(argcracker PUBLIC include)
|
||||
add_executable(novus-argcracker)
|
||||
target_sources(novus-argcracker PRIVATE
|
||||
src/main.cpp
|
||||
src/tickcount.cpp)
|
||||
target_link_libraries(novus-argcracker PRIVATE Qt6::Core Qt6::Core5Compat physis z)
|
||||
target_include_directories(novus-argcracker PUBLIC include)
|
||||
|
||||
if (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
||||
target_compile_definitions(argcracker PUBLIC MACOS)
|
||||
target_compile_definitions(novus-argcracker PUBLIC MACOS)
|
||||
endif ()
|
||||
|
||||
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
|
||||
target_compile_definitions(argcracker PUBLIC WIN32)
|
||||
target_compile_definitions(novus-argcracker PUBLIC WIN32)
|
||||
endif()
|
||||
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||
target_compile_definitions(argcracker PUBLIC LINUX)
|
||||
target_compile_definitions(novus-argcracker PUBLIC LINUX)
|
||||
endif()
|
||||
|
||||
install(TARGETS novus-argcracker ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS})
|
|
@ -9,11 +9,11 @@ caveats:
|
|||
## Usage
|
||||
|
||||
```bash
|
||||
$ argcracker.exe [sqexarg string] [tick range] [known arg]`
|
||||
$ novus-argcracker [sqexarg string] [tick range] [known arg]`
|
||||
```
|
||||
|
||||
Example:
|
||||
|
||||
```bash
|
||||
`$ argcracker.exe //**sqex0003p8LrsXt9_m9RJAsGzXd66zb3SxeTqZdhV**// 1000 UserPath`
|
||||
`$ novus-argcracker //**sqex0003p8LrsXt9_m9RJAsGzXd66zb3SxeTqZdhV**// 1000 UserPath`
|
||||
```
|
|
@ -69,6 +69,11 @@ inline QString decryptGameArg(uint32_t tickCount, QString sqexString) {
|
|||
}
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
if (argc < 4) {
|
||||
qInfo() << "Usage: novus-argcracker [sqexarg string] [tick range] [known arg]";
|
||||
return 1;
|
||||
}
|
||||
|
||||
const char* toCrack = argv[1];
|
||||
int tickRange = atoi(argv[2]);
|
||||
const char* knownArg = argv[3];
|
||||
|
|
Loading…
Add table
Reference in a new issue