MCPcopy Create free account
hub / github.com/Yeuoly/0xUBypass / Printable2Number

Method Printable2Number

WindowsShellcodeInjector/RSA.cpp:193–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193void std::Printable2Number(string src, BigUint &ed, BigUint &N) {
194 size_t idx = src.find(':');
195 if (idx == std::string::npos) {
196 return;
197 }
198 size_t srclen = src.length();
199 ed = 0, N = 0;
200 for (size_t i = 0; i < idx; i++) {
201 ed = ed * PrintableSize + PrintableInvertTable[src[i]];
202 }
203 for (size_t i = idx + 1; i < srclen; i++) {
204 N = N * PrintableSize + PrintableInvertTable[src[i]];
205 }
206}
207
208void std::Number2Printable(string &dst, BigUint ed, BigUint N) {
209 stack<uint8_t> num;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected