MCPcopy Create free account
hub / github.com/MJx0/KittyMemoryEx / findRemoteSymbol

Method findRemoteSymbol

KittyMemoryEx/KittyScanner.cpp:1317–1342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1315 _programElf = ElfScanner(_pMem, it.startAddress, allMaps);
1316 if (_programElf.isValid() && _programElf.dynamic())
1317 break;
1318 }
1319 }
1320
1321 return _programElf;
1322}
1323
1324#ifdef __ANDROID__
1325std::vector<ElfScanner> ElfScannerMgr::getAllELFs(EScanElfType type, EScanElfFilter filter)
1326#else
1327std::vector<ElfScanner> ElfScannerMgr::getAllELFs()
1328#endif
1329{
1330 std::vector<ElfScanner> elfs;
1331
1332 if (!_pMem)
1333 return elfs;
1334
1335#ifdef __ANDROID__
1336 const auto progMachine = getProgramElf().header().e_machine;
1337 static auto eMachineCheck = [](EScanElfType type, int a, int b) -> bool {
1338 return a == 0 || b == 0 || type == EScanElfType::Any || (type == EScanElfType::Native && a == b) ||
1339 (type == EScanElfType::Emulated && a != b);
1340 };
1341
1342 const bool isAppFilter = filter == EScanElfFilter::App;
1343 const bool isSysFilter = filter == EScanElfFilter::System;
1344#endif
1345

Callers 2

mainFunction · 0.80
mainFunction · 0.80

Calls 4

getAddressMapFunction · 0.85
findSymbolMethod · 0.80
baseMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected