Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Other Programming › PHP Programming › [php] Cant do it :(

[php] Cant do it :(

Posts 1–4 of 4 · Page 1 of 1
m0k1
m0k1
[php] Cant do it :(
Hi, all i making some site login ... but i want to connect it with vbulletin but i can't ... i always fail ...

I need to do this md5((md5(userpassword)+salt),salt is some custom numbers in mysql table so i do all of that but i think to salt is not query ... can someown help me with this ?

part of that code
http://paste2.org/p/1826539
#1 · 14y ago
Alexlemaitre
Alexlemaitre
Hi,

I look up at your code and i see some different parts of this code which are not really good, i put another structure to correct it and i expect it'll work .

I changed the $ names just as i do it when i program .
If you need help, tell us.

As the script in case IF, i see that you put if ... < 1
I think there's no reason to put this, so i changed it to == true

Last thing is when you put a $_name inside a SQL query, you must put this style ( i use it )

==> $name = "SELECT ... FROM ... WHERE ... =(single quote)(double quote)(dot)$name(dot)(double quote)(single quote) ... ";

Alex,


<?php

include ("connect.php");

if (isset($_POST['submit']) && $_POST['submit'] == "TEXT_APPEAR_OF_BUTTON") // name button ...
{
$username1=$_POST['username'];
$passwords=$_POST['password'];
$sql = "SELECT salt FROM user WHERE username = '".$username1."'";
$query = mysql_query($sql);
$salt = mysql_fetch_array($query);

$password1=md5($passwords);
$password2=md5($password1 && $salt);

$sql_user = "SELECT * from user where username= '".$username1."' and password='".$password2."'";
$req_user = mysql_query($sql_user) or die("Could not get admin");
$user = mysql_fetch_array($req_user);

if(strlen($user['username']) == true )
{
echo "wrong user /pass.";
}
elseif(strlen($passwords) == true )
{
echo "wrogggg.";
}
else
{
$username = $_SESSION['pwngame'];
echo "thanks for login !";
}


}
?>
#2 · edited 14y ago · 14y ago
m0k1
m0k1
Great Thanks
#3 · 14y ago
Alexlemaitre
Alexlemaitre
If you're code is okay, i think you can close the topic .

Alex,
#4 · 14y ago
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

  • I cant open WPEBy ValconGSX in WarRock - International Hacks
    8Last post 20y ago
  • cant log in?By naughtynurse in WarRock - International Hacks
    4Last post 20y ago
  • blackpkerstr emty you mail box, I cant send anything to youBy radnomguywfq3 in Spammers Corner
    1Last post 19y ago
  • dll for those who cant even google :PBy jam in Gunz Hacks
    5Last post 19y ago
  • Cant Use Public HacksBy King Ownage in Suggestions, Requests & General Help
    9Last post 19y ago

Tags for this Thread

None