MCPcopy Create free account
hub / github.com/SecurityAnalysts01/ShellcodeLoader / in

Method in

Loading/Loading/lazy_importer.hpp:648–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646
647 template<class F = T, bool IsSafe = false, class Module>
648 LAZY_IMPORTER_FORCEINLINE static F in(Module m) noexcept
649 {
650 if(IsSafe && !m)
651 return {};
652
653 const exports_directory exports((const char*)(m));
654 if(IsSafe && !exports)
655 return {};
656
657 for(unsigned long i{};; ++i) {
658 if(IsSafe && i == exports.size())
659 break;
660
661 if(hash(exports.name(i), get_offset(OHP)) == get_hash(OHP))
662 return (F)(exports.address(i));
663 }
664 return {};
665 }
666
667 template<class F = T, class Module>
668 LAZY_IMPORTER_FORCEINLINE static F in_safe(Module m) noexcept

Callers

nothing calls this directly

Calls 6

hashFunction · 0.70
get_offsetFunction · 0.70
get_hashFunction · 0.70
sizeMethod · 0.45
nameMethod · 0.45
addressMethod · 0.45

Tested by

no test coverage detected