Securing a database

Started on the old forum in September 2010 · view the original in the archive · old links redirect here

20 replies · 1,758 views · started 16 years ago · 1 min read

10 participants
ewanz Developer · 187 posts #1

i didnt kn0w h0w s0me0ne kn0w my database name, passw0rd 0r table name in phpmydadmin.. If sql injecti0n.. I already put the bl0ck c0de via p0st n url.. Is it s0me0ne can view my c0nfig 0r hack phpmyadmin?? I really c0nfuse with that.. Can s0me0ne give me the answer h0w t0 s0lve that? If i encrypt the database.. Is it the s0luti0n..

Added after 3 minutes:

h0w ab0ut the sql all privelledges run that i set.. S0 c0nfuse n0w.. H0w can the run sql c0mmand and injecting...

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
BANDIT007 Developer · 112 posts #2

PisS on the database name...just rename pass , perm the main thing if u r using lava mainly...just use ur brain and think how the script u r using can be injected

Added after 3 minutes:

If he has edit ur config then it means that he has gues ur paswrd or has used bruteforce enter ur cpanel

PRACTICE MAKES PERFECTKEEP TRYING UNTIL YOU ACHIEVE SOMETHING IN LIFE. IF YOU LIKE WHAT AM SHARING PLEASE DO SAY THANKS!!! THANK YOU LOL

robzky Developer · 205 posts #3

Renaming a table is not a solution for this problem, explore and learn.

LESS TALK. LESS MISTAKE.

HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

ewanz Developer · 187 posts #4

give some hint and tips plezzz..

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
i0nutzxp Developer · 150 posts #6

mysql_real_escape_string $id = (int) $_GET['id']; replace all sql injection used chars and many other

<?php unlink('World/Europe/Romania.country'); ?>
ewanz Developer · 187 posts #7

i have alredy did it bef0re.. But still happened t00.. He can c0nquer the database.. H0w t0 bl0ck it?

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
m4ster_v4 Developer · 125 posts #8

er..

ewanz wrote: i have alredy did it bef0re.. But still happened t00.. He can c0nquer the database.. H0w t0 bl0ck it?

Maybe they does't know ur table prefix/name.. they just use current connection from ur db and sent a command that does't need calling table name.. (maybe).. maybe all ur data had been sent to outsider..

Visit my WEBSITE Project: http://www.aspirewap.net

akela Senior · 305 posts #10

create database password that are very complex to understand. don't use simple password as text or numbers. create different database name and database user name. you may change config permission of that script. you may set config permission as 444 etc that means other user can not hacked .

External image (may be gone) Unlimited Web Hosting service. 99.99 $ uptime Guarantee. Free Trail Available for 30 days. Free Script | Null script| Php | Unlimited Web Hosting| Unlimited Space | Unlimited Bandwidth| Unlimited Domain| $3/m Unlimited Space | Unlimited Bandwidth|5 Domain| $2/m 10 GB Space | 100 GB Bandwidth| 1 Domain| $1/m FFMPEG| FREE SCRIPT | FREE SITE BUILDER |LIVE SUPPORT [Timewebhosting.com On Web Hosting| Unlimited Web Hosting](http://www…

ewanz Developer · 187 posts #11

i think s0.. But h0w can they kn0w the db user n pwd to connect the db outsider.. Is it phpmyadmin hack?

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
something else Fellow · 2,296 posts #12

They have probably got a shell script on your server to get your database details

ewanz Developer · 187 posts #13

i had disable the shell excuted in my server and off the uploder.. It possible... S0 c0nfuse n0w

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
something else Fellow · 2,296 posts #14

how did you disable them ... as there is either a hole there or via sql injection of by use of a wml variable if wml is used?

ewanz Developer · 187 posts #15

hole? I d0nt use wml.. Can u give s0me example,

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
something else Fellow · 2,296 posts #16

how have you disabled shell scripts ? that might be a hole

ewanz Developer · 187 posts #17

suphp.. If the h0le? They must kn0w the table name t0 inject.. I've change it.. But it still happened.. Is it php s0urce can view?? I think they view my c0nfig file and run aut0mated sql injecti0n..

Added after 2 minutes:

h0w t0 encrypt dbname, dbpass n dbuser in my c0nfig?? I think this 0nly way..

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
something else Fellow · 2,296 posts #18

yes if an php source viewer is uploaded to your site then they can see your database password.... i noticed also in a previous topic that you had malicious warez on your site .... if there still there they can be accessing your data via encrypted files in these

Added after 4 minutes:

you cant encrypt it .... as it can be easily decrypted by looking at your sites.... also just because you have changed your table names and fields a hacker can easily crash your sql to get new table names etc....

so far you havent shown you have any protection on your site. You keep saying you have got it .... but its obviously not good security if you showed your security methods we might be able to help you secure them better but without them this is a dead end topic. as everyone apart from you is working blind to try and help you...

ewanz Developer · 187 posts #19

can i pm u s0mething else? I have s0mething t0 say privacy..

Added after 29 minutes:

yes, i had malware in my r00t before.. But bef0re i g0t malware in r00t..it already happened.. Ive upl0ad shell t00 t0 test my r00t.. It cant run as executeable... How can they upl0ad the php s0urce viewer and i d0nt have 0pen upl0ader t00 in my script f0r any type 0f execute files.. Is it shell can run fr0m image type?? S0 confuse n0w...

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
icedroplet1987 Senior · 258 posts #20

well if ur site is vurnerable to injection then you cant stop heppening it again n again till you know how its happening.. can you tell.. is it lavalair or something else on what u r the VICTIM?

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close