• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 17:17
CEST 23:17
KST 06:17
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL22] Ro16 Preview: Holy Diver3[ASL22] Ro16 Preview: Rough Waters10[ASL22] Ro24 Preview: Siren's Call8[ASL22] Ro24 Preview: Summer's End9Serral wins HomeStory Cup 2915
Community News
StarCraft open world shooter announced at BlizzCon75Weekly Cups (Aug 30-Sep 7): herO thrives amid growing schism10Official StarCraft website teases new content ahead of BlizzCon?174Stellar Fest TWO the Moon (Dec 16-20)9Weekly Cups (August 24-30): Patches' balance mod takes over3
StarCraft 2
General
StarCraft open world shooter announced at BlizzCon How do you feel about the StarCraft shooter announcement at BlizzCon 2026? Balance hotfix patch 5.0.16b (July 16) Team Liquid Map Contest #22: Results and Winners Weekly Cups (Aug 30-Sep 7): herO thrives amid growing schism
Tourneys
RSL Revival: Season 6 - Qualifiers and Main Event RSL goes to London! 2026 Offline Finals Nov 21-22 Sparkling Tuna Cup - Weekly Open Tournament KSL Week #92 IntoTheTV X SOOP SC2 League : Weekly & Monthly
Strategy
[G] Having the right mentality to improve
Custom Maps
Nexus Wars 2021 GUIDE [M] (2) Industrial Park
External Content
Mutation # 543 Enhanced Defenses The PondCast: SC2 News & Results Mutation # 542 The Ascended Mutation # 541 Binary Choice
Brood War
General
Official StarCraft website teases new content ahead of BlizzCon? [ASL22] Ro16 Preview: Holy Diver ASL22 General Discussion BGH Auto Balance -> http://bghmmr.eu/ Broodwar Prediction Market
Tourneys
[ASL22] Ro16 Group C [ASL22] Ro16 Group B [ASL22] Ro16 Group A Escore Tournament - Season 3
Strategy
Replay Review Process - What do you do? Simple Questions, Simple Answers Odyssey Mineral Stack Saturation Game Theory for Starcraft
Other Games
General Games
Diablo IV Nintendo Switch Thread EVE Corporation [Maplestory Hardcore] Let's Play~!! General RTS Discussion Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
[TL LoL EUW IHs] Teemo shall perish TSM pausing esports and CLG Dead
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread
Community
General
US Politics Mega-thread UK Politics Mega-thread Things Aren’t Peaceful in Palestine Trading/Investing Thread Russo-Ukrainian War Thread
Fan Clubs
MarineLorD Fan Club The Creator Fan Club The ShoWTimE Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! Diablo Animated Series on Netflix
Sports
Football (Soccer) Thread TeamLiquid Health and Fitness Initiative For 2023 MLB/Baseball 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Northern Ireland Global Starcraft
Blogs
Virtual Romance, Real-Life C…
TrAiDoS
Regacy Esports:Our Goa…
regacyesports
Dreaming of BW patches (mod…
c3rberUs
LOCKPICKING NOOB
LUCKY_NOOB
Customize Sidebar...

Website Feedback

Closed Threads



Active: 4645 users

[P, SC] Beta-testers needed AGAIN - Page 2

Blogs > Taiche
Post a Reply
Prev 1 2 All
yenta
Profile Blog Joined April 2006
Poland1143 Posts
May 14 2008 00:07 GMT
#21
I will help - it'll be fun to see if i can pull some xss off
Trutacz Practice Discord - https://discord.gg/PWF7Pv
Taiche *
Profile Blog Joined December 2004
France1963 Posts
May 14 2008 09:00 GMT
#22
Yeah thanks, it's something I need a lot as well
Manifesto7 Uses ReXplorer, and so should you! : http://repasm.net/rx/
anotak
Profile Blog Joined March 2008
United States1537 Posts
May 15 2008 11:14 GMT
#23
I'm down for this, I know a bit about cross site scripting and a tiny bit about SQL Injection. Also, the more generic logic holes are fun to find as well.
Taiche *
Profile Blog Joined December 2004
France1963 Posts
May 15 2008 15:54 GMT
#24
Cool, thanks
Manifesto7 Uses ReXplorer, and so should you! : http://repasm.net/rx/
MasterOfChaos
Profile Blog Joined April 2007
Germany2896 Posts
May 15 2008 16:44 GMT
#25
Using formatstring based queryfunctions like the following reduces the the risk of SQL-Injection significantly. We also log all query errors to the database on the live system, which allows fast detection of such errors. (You can also opt for email). I removed some project specific parts and the parts not written by myself.
+ Show Spoiler +
function query()
{
$args = func_get_args();
$args_count=func_num_args();
if ($args_count==0){die('Query needs at least one parameter');};
if ($args_count>1)
{
for ($i=1;$i<$args_count;$i++)
{
if (get_magic_quotes_gpc())
$args[$i]=stripslashes($args[$i]);
$args[$i]=mysql_real_escape_string($args[$i]);
}
$qry=call_user_func_array('sprintf', $args);
}
else $qry=&$args[0];
$res=@mysql_query($qry);
if ($res===false)
{
collect additional info about the site like POST and GET Data
if (($_SERVER['REMOTE_ADDR']=='127.0.0.1')or(Is User an Admin?))
{
echo('<div class="sql_error">Mysqlerror:<br><pre>'.htmlentities($qry).'</pre><br>'.htmlentities(mysql_error()).'</div>');
}
else
{
Log query to database here
die('SQL-Error');
}
}
return $res;
}

Usage:
$res=query("select * from table where name='%s'",$nick);
$res=query("select * from table where id=%d",$id);
LiquipediaOne eye to kill. Two eyes to live.
Taiche *
Profile Blog Joined December 2004
France1963 Posts
May 15 2008 18:24 GMT
#26
Yeah thanks, but I already have classes doing all that ;p Actually, I think I have rewritten some sort of ORM without knowing it. Should have reused one instead... bah.
Manifesto7 Uses ReXplorer, and so should you! : http://repasm.net/rx/
yenta
Profile Blog Joined April 2006
Poland1143 Posts
May 15 2008 19:30 GMT
#27
why not just use a framework that does all of that for you
Trutacz Practice Discord - https://discord.gg/PWF7Pv
Prev 1 2 All
Please log in or register to reply.
Live Events Refresh
BlizzCon
18:30
Blizzard Classic Cup 2026
StarCraft2477
RotterdaM885
ComeBackTV 577
IndyStarCraft 198
EnkiAlexander 85
CosmosSc2 67
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 885
IndyStarCraft 198
StarCraft: Brood War
Britney 13883
Shuttle 1234
Artosis 827
Dewaltoss 81
CosmosSc2 67
Dota 2
Pyrionflax183
LuMiX1
League of Legends
Doublelift5656
JimRising 313
Counter-Strike
byalli1345
Fnx 787
Super Smash Bros
C9.Mang0314
hungrybox275
Mew2King159
Chillindude17
Heroes of the Storm
Liquid`Hasu499
Other Games
summit1g11233
Liquid`RaSZi2506
B2W.Neo1318
Tasteless596
Livibee121
XaKoH 118
Organizations
Other Games
gamesdonequick2367
Heroes of the Storm
Heroes of the Storm684
StarCraft: Brood War
Afreeca ASL 531
[ Show 14 non-featured ]
StarCraft 2
• Berry_CruncH456
• Hupsaiya 69
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• Azhi_Dahaki43
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 3163
• masondota22089
Other Games
• Shiphtur233
Upcoming Events
Afreeca Starleague
12h 43m
Light vs JyJ
Soulkey vs hero
WardiTV Weekly
13h 43m
Monday Night Weeklies
18h 43m
Afreeca Starleague
1d 12h
Snow vs Shinee
Shine vs EffOrt
GSL
1d 13h
PiGosaur Cup
2 days
The PondCast
2 days
Kung Fu Cup
2 days
Replay Cast
3 days
KCM Race Survival
3 days
[ Show More ]
IntoTheTV X SOOP
3 days
Replay Cast
4 days
IntoTheTV X SOOP
4 days
Replay Cast
5 days
GSL
5 days
Replay Cast
6 days
GSL
6 days
Shopify Rebellion Sundays
6 days
Spirit vs Mixu
Liquipedia Results

Completed

Acropolis #5 - TRS
PiG Sty Festival 8.0
Big Dog Cup 2026 Div 1

Ongoing

KCM Race Survival 2026 Season 3
K-JUNGMAN
ASL Season 22
Super Anchor Qualifying S3
CSL 2026 AUTUMN (S22)
Acropolis #5
Blizzard Classic Cup 2026
Calamity Invitational
FISSURE Playground #3
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026

Upcoming

Acropolis #5 - GSA
Acropolis #5 - GSB
Acropolis #5 - GSC
SC4ALL II: Brood War
HSC XXX
Stellar Fest 2: Lunar Cup
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
PGL Major Singapore 2026
Stake Ranked Episode 6
BLAST Rivals Fall 2026
IEM Beijing 2026
Stake Ranked Episode 5
PGL Masters Bucharest 2026
1win Private Club #2
Thunderpick World Champ. '26
ESL Pro League Season 24
Stake Ranked Episode 4
1win Private Club #1
Logitech G Play Connect 2026
SL StarSeries Fall 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.