Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Calculate SHA1 password hash
- CryptoPP::SHA1 sha;
- std::string result;
- CryptoPP::StringSink* ssink = new CryptoPP::StringSink(result);
- CryptoPP::HexEncoder* encoder = new CryptoPP::HexEncoder(ssink,false);
- CryptoPP::HashFilter* filter = new CryptoPP::HashFilter(sha,encoder);
- CryptoPP::StringSource(password.c_str(), true, filter);
- /*
- Program received signal SIGSEGV, Segmentation fault.
- [Switching to Thread 0xb72588d0 (LWP 15422)]
- 0xb7348e1a in strcmp () from /lib/i686/cmov/libc.so.6
- (gdb) where
- #0 0xb7348e1a in strcmp () from /lib/i686/cmov/libc.so.6
- #1 0x080bbcff in CryptoPP::AlgorithmParametersBase::GetVoidValue (
- this=0xb7343a00, name=0x8172b38 "Uppercase", valueType=@0x81dafa8,
- pValue=0xbfaa169b) at algparam.cpp:36
- #2 0x0812c03f in CryptoPP::HexEncoder::IsolatedInitialize (this=0x822c3d8,
- parameters=@0xbfaa16e4) at cryptlib.h:264
- #3 0x080535bf in HexEncoder (this=0x822c3d8, attachment=0x822c3a8,
- uppercase=false, outputGroupSize=0, separator=@0xbfaa1948,
- terminator=@0xbfaa1944) at /usr/include/cryptopp/hex.h:15
- #4 0x0804cdad in OpeLS::AccountsManager::isAccountValid (this=0x81e2050,
- username=
- {static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xbfaa1ac8 "D÷\037\bD÷\037\b`±B·\020÷\037\bø\032ª¿ô\237B·`±B·(÷\037\b\b\033ª¿&84·`±B·(÷\037\b ÷\037\bô\237B·`±B·\230Ò\037\b(\033ª¿&84·`±B·\230Ò\037\b\220Ò\037\bô\217T·¨\033ª¿´\033ª¿8\033ª¿á¢Q·\230Ò\037\bô\217T·H\033ª¿-kO·\230Ò\037\b@"}},
- password=
- {static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xbfaa1ac4 "\224Ã\"\bD÷\037\bD÷\037\b`±B·\020÷\037\bø\032ª¿ô\237B·`±B·(÷\037\b\b\033ª¿&84·`±B·(÷\037\b ÷\037\bô\237B·`±B·\230Ò\037\b(\033ª¿&84·`±B·\230Ò\037\b\220Ò\037\bô\217T·¨\033ª¿´\033ª¿8\033ª¿á¢Q·\230Ò\037\bô\217T·H\033ª¿-kO·\230Ò\037\b@"}})
- at /home/ouverta/Bureau/ouvertaserv/ouvertaserver/branches/Login/src/AccountsManager.cpp:90
- #5 0x0805b041 in OpeLS::NetworkLayer::update (this=0x81e4d98)
- at /home/ouverta/Bureau/ouvertaserv/ouvertaserver/branches/Login/src/NetworkLayer.cpp:142
- #6 0x08059c9d in OpeLS::Login::Run (this=0x81e1aa0)
- at /home/ouverta/Bureau/ouvertaserv/ouvertaserver/branches/Login/src/Login.cpp:33
- #7 0x080609cf in main ()
- at /home/ouverta/Bureau/ouvertaserv/ouvertaserver/branches/Login/src/main.cpp:7
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement