hi_jakkk (17-08-12)
In this Tutorial i will explain the basics of how to secure a lava script:
1. Lets Remove the Sessions
The easiest way of removing the session in lava is to uselets put that at the beginning of every page right after the <?phpPHP Code:session_start();
ok that still dont removes the sessions right? Thats what we do next
Wapdesire right from the start checks if a session is already existing in a database we need to delete that and start a new session :
ok now we go to every page again you will note thePHP Code:if (isset($_SESSION['sid']))
{
mysql_query("DELETE FROM ibwf_ses WHERE id='$_SESSION[sid]'");
unset($_SESSION['sid']);
}
else
{
$_SESSION['sid'] = $sid;
}
there we are going to change it toPHP Code:$sid = $_GET['sid'];
after we have done that you can securly remove the &sid=$sid from the linksPHP Code:$sid = $_SESSION['sid'];
We have just removed the sessions from the url congrats
2. Secure posted data like you might have noted there are a lot of $_GET or $_POST statements lets secure them here is a simple function that will do the job simply put it in core.phpand instead of $_GET or post we usePHP Code:function getget($name, $def = '') {
if (isset($_REQUEST[$name]))
return $_REQUEST[$name];
else
return $def;
}
for examplePHP Code:$pass = getget('pass', $pass);
$user = getget('user', $user);
3. Lets secure the gallery
use phpthumb for gallery simply look in google for phpthumb then in user profiles or in gallery use it the way how to use it is discribed in the phpthumb file
hope this helps you guys
PHP Code:foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
hi_jakkk (17-08-12)
thanks allot.. bro, pls also chk this topic. i can give u my files to correct this particular problem.. pls help.. [Only registered and activated users can see links. Click Here To Register...]
is it not for arwap script?
u can use this basicly for any script ive done that to lava methos also
________________
Jacques
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
__________________
NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH
yeah riderz its fun working with you![]()
PHP Code:foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
lol yea m8 i hope our edit gona be good
________________
Jacques
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
__________________
NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH
The above doesnt secure a lava script it just makes it harder for noobs to hack
well, thank you! So, djmatrix and riderz are working together? Can't wait to see your work!
if it makes it harder for noobs to hack then it is more secure aint it? and mysterio3 yes we work together
PHP Code:foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
i agree with DjMatrixits more secure than to do nothing
![]()
Did I help you?
You can help me too [Only registered and activated users can see links. Click Here To Register...]
Your donations will help me finance my studies.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks