• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 01:45
CEST 07:45
KST 14:45
  • 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
Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun12[ASL21] Ro8 Preview Pt1: Inheritors16[ASL21] Ro16 Preview Pt2: All Star10Team Liquid Map Contest #22 - The Finalists22[ASL21] Ro16 Preview Pt1: Fresh Flow9
Community News
RSL Revival: Season 5 - Qualifiers and Main Event4Code S Season 1 (2026) - RO12 Results02026 GSL Season 1 Qualifiers25Maestros of the Game 2 announced92026 GSL Tour plans announced15
StarCraft 2
General
Code S Season 1 (2026) - RO12 Results Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun Team Liquid Map Contest #22 - The Finalists Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool MaNa leaves Team Liquid
Tourneys
RSL Revival: Season 5 - Qualifiers and Main Event GSL Code S Season 1 (2026) SC2 INu's Battles#15 <BO.9 2Matches> WardiTV Spring Cup SEL Masters #6 - Solar vs Classic (SC: Evo)
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
The PondCast: SC2 News & Results Mutation # 523 Firewall Mutation # 522 Flip My Base Mutation # 521 Memorable Boss
Brood War
General
Pros React To: Leta vs Tulbo (ASL S21, Ro.8) [BSL22] RO16 Group A - Sunday 21:00 CEST [BSL22] RO16 Group B - Saturday 21:00 CEST RepMastered™: replay sharing and analyzer site BW General Discussion
Tourneys
[BSL22] RO16 Group Stage - 02 - 10 May Escore Tournament StarCraft Season 2 [Megathread] Daily Proleagues [ASL21] Ro8 Day 2
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers What's the deal with APM & what's its true value Any training maps people recommend?
Other Games
General Games
Daigo vs Menard Best of 10 Stormgate/Frost Giant Megathread Nintendo Switch Thread Dawn of War IV Diablo IV
Dota 2
The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread European Politico-economics QA Mega-thread Russo-Ukrainian War Thread 3D technology/software discussion Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Formula 1 Discussion
World Cup 2022
Tech Support
streaming software Strange computer issues (software) [G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Sexual Health Of Gamers
TrAiDoS
lurker extra damage testi…
StaticNine
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1894 users

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

Blogs > Taiche
Post a Reply
Prev 1 2 All
yenta
Profile Blog Joined April 2006
Poland1142 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
Poland1142 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
Replay Cast
00:00
2026 GSL S1: Ro12 Group A
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ProTech159
StarCraft: Brood War
Mind 250
Shine 154
Backho 126
Aegong 82
ZergMaN 21
Dota 2
NeuroSwarm186
League of Legends
JimRising 702
Counter-Strike
Stewie2K1172
Other Games
summit1g7176
C9.Mang0624
WinterStarcraft596
monkeys_forever393
RuFF_SC295
ViBE51
ToD26
Organizations
Other Games
gamesdonequick854
Dota 2
PGL Dota 2 - Main Stream78
StarCraft: Brood War
UltimateBattle 34
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 13 non-featured ]
StarCraft 2
• Response 17
• OhrlRock 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Stunt561
Upcoming Events
Replay Cast
3h 15m
RSL Revival
4h 15m
Classic vs GgMaChine
Rogue vs Maru
WardiTV Invitational
5h 15m
Percival vs Shameless
ByuN vs YoungYakov
IPSL
10h 15m
Ret vs Art_Of_Turtle
Radley vs TBD
BSL
13h 15m
Replay Cast
18h 15m
RSL Revival
1d 4h
herO vs TriGGeR
NightMare vs Solar
uThermal 2v2 Circuit
1d 8h
BSL
1d 13h
IPSL
1d 13h
eOnzErG vs TBD
G5 vs Nesh
[ Show More ]
Patches Events
1d 18h
Replay Cast
2 days
Wardi Open
2 days
Afreeca Starleague
2 days
Jaedong vs Light
Monday Night Weeklies
2 days
Replay Cast
2 days
Sparkling Tuna Cup
3 days
Afreeca Starleague
3 days
Snow vs Flash
WardiTV Invitational
3 days
GSL
4 days
Classic vs Cure
Maru vs Rogue
GSL
5 days
SHIN vs Zoun
ByuN vs herO
OSC
5 days
Replay Cast
5 days
Escore
6 days
The PondCast
6 days
WardiTV Invitational
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Escore Tournament S2: W5
WardiTV TLMC #16
Nations Cup 2026

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
KK 2v2 League Season 1
Acropolis #4
SCTL 2026 Spring
RSL Revival: Season 5
2026 GSL S1
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026

Upcoming

BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
2026 GSL S2
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 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.