mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
* added some code * improvement * visit * added scanner code * update * fixed naming * added const * added type casting * added file * patch * added unlikely * added in module scanner * fixing test * fix * remove * improvement * fix * Update source/utility/elf_pattern_scan.cpp Co-authored-by: Saikari <lin@sz.cn.eu.org> * rev * fix * patch * decomposed method * fix * fix * improvement * fix * fix * commented stuff --------- Co-authored-by: Saikari <lin@sz.cn.eu.org>
18 lines
610 B
C++
18 lines
610 B
C++
//
|
|
// Created by Vladislav on 30.12.2025.
|
|
//
|
|
// /Users/vladislav/Downloads/valencia
|
|
#include <gtest/gtest.h>
|
|
#include <omath/utility/elf_pattern_scan.hpp>
|
|
#include <print>
|
|
TEST(unit_test_elf_pattern_scan_file, ScanMissingPattern)
|
|
{
|
|
//FIXME: Implement normal tests :)
|
|
//constexpr std::string_view path = "/Users/vladislav/Downloads/crackme";
|
|
|
|
//const auto res = omath::ElfPatternScanner::scan_for_pattern_in_file(path, "F3 0F 1E FA 55 48 89 E5 B8 00 00 00 00", ".text");
|
|
//EXPECT_TRUE(res.has_value());
|
|
|
|
//std::println("In virtual mem: 0x{:x}", res->virtual_base_addr+res->target_offset);
|
|
}
|