Simple way to protect ur site fr4 session hack.

Started on the old forum in December 2009 · view the original in the archive · old links redirect here

27 replies · 4,006 views · started 16 years ago · 1 min read

TL;DR · summary of 27 replies
  • - The original question proposed hiding an admin panel by changing its URL path.
  • - Subzero suggested using mod_rewrite to hide the hidden folder with a random string each time the page is refreshed.
  • - Huwad recommended adding passwords, removing BBCodes for links, and preventing accidental script execution as ways to protect against session hacking.
  • - The discussion also touched on other security measures like disabling staff lists, changing admin panel directories, using cookies, and implementing mod_security.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

17 participants
KiLLeR_mAcHInE Developer · 128 posts #1

Create ur site. But do not add ownercp and head admincp. Just make a new path like this siteurl.com/code then in dis path put ownercp and head admincp. And dont tel any1 except trusted staf about this url. If any1 hacks ur owner id in siteurl.com there will be no ownercp and head admincp it wil just contain mod/log . Then the person cant do anything wid ur id. Hope this tutorial helps u

:-):-):-):-) any probs PM me ??? :-):-):-):-):-) c yA

subzero Super moderator Fellow · 3,954 posts #2

i steal your id

Now im logged in

Now i look at the buttom screen at admin or ownercp.php

Find it then boom ... easy 123 steps knowing where.

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

huwad Developer · 215 posts #3

nice tutorial.. but it is for session hacking.. hide your tools from the hacker, in easiest way you can add password to your tools. but it cant prevent injections, only in session hacking. to prevent session hacking remove all bbcodes that the user can add links, and remove all url upload, specialy in gallery. they can use it as their avatar. when you view his/her profile, thats it.. he got your session.. all linking, or replace php, php3, php4, php5 etc. to prevent accidentaly clicking and running their linked script., and always log out your account before leaving the site.. to cut the session

hacking is like sex. you get in, you get out and you pray you left nothing behind.

KiLLeR_mAcHInE Developer · 128 posts #4

subzero wrote: i steal your id

Now im logged in

Now i look at the buttom screen at admin or ownercp.php

Find it then boom ... easy 123 steps knowing where.

yeah but when u wil steal my id u wil be like dis siteurl.com/index.php?action=main&sid=GWM.MGWMGDGJADGMDJ ! u wil never get ownercp.php coz its found in this siteurl.com/code/index.php?action=main&sid=gmpwgdmgd its here that u wil find the owner cp bcoz in the first url i havent add ownercp.php the ownercp.php is found in second url

:-):-):-):-) any probs PM me ??? :-):-):-):-):-) c yA

KiLLeR_mAcHInE Developer · 128 posts #5

huwad wrote: nice tutorial.. but it is for session hacking.. hide your tools from the hacker, in easiest way you can add password to your tools. but it cant prevent injections, only in session hacking. to prevent session hacking remove all bbcodes that the user can add links, and remove all url upload. all linking, or replace php, php3, php4, php5 etc. to prevent accidentaly clicking and running their linked script

this also nice way to protect ur site

:-):-):-):-) any probs PM me ??? :-):-):-):-):-) c yA

subzero Super moderator Fellow · 3,954 posts #6

This what i will done.

mod_rewrite the hiden folder to Ramdom 2937uesdrrvhj98123t9 each time user reflash his screen but the real folder is admin_29fi__9292929__92598__haha

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

huwad Developer · 215 posts #7

ahaha. . i found this thread.. this is the best way to protect your site.. very effective.. credits from WhiteWarrior

WhiteWarrior wrote: Here i will talk you thru how to REALLY secure a lava script! once you have done everything of i have said your lava script will be 100% hacker proof.. nobody in the world will beable to hack it!!

Got the script already installed?? if so.. download something like CUTEFTP

login to your server via this, click public_html or www highlight ALL files and folders. right click and press DELETE.

now login to your cpanel, goto phpmyadmin, Then Click DELETE database

Then goto your domain name

B00M nothing is there.. you have fully secured your lava version. no more hackers, no more bugs, no more coming on here Inboxing me and asking about hackers. no more crappy topics saying "secure a lava script"

Keep it real.!

hacking is like sex. you get in, you get out and you pray you left nothing behind.

WereWolveZ Developer · 51 posts #8

what a joke lol

With Christmas quickly approaching you’re going to need to get a gift for your werewolf lover and I’m here to help you out. Here are 10 gift ideas perfect for any fan of the furry.😌 http://vampires.com and http://darkness.com

huwad Developer · 215 posts #9

ehehe .. sounds funny but he has a point..

hacking is like sex. you get in, you get out and you pray you left nothing behind.

wapmaster2 Developer · 114 posts #10

lava is secure if you dont have stafflist ...... means no need 2 staff only members full spaming and everyone is free to do anything.

result = huge ugly traffic lol

[tired by sid hack]

🌹 JUST JOIN FOR FUN ! **[url]http://wapmaster2.com**

metulj Super moderator Principal · 1,726 posts #11

subzero wrote: i steal your id

Now im logged in

Now i look at the buttom screen at admin or ownercp.php

Find it then boom ... easy 123 steps knowing where.

imagine this... i give you my session... (or you could try to steal it, but i should turn OFF some security s**t first) then you look everywhere... and finally you find link saying Admin CP... you click on link and...... ..... .......... ................... ............................. ........................................ well you only get loged and kicked out as there isnt any admin control panel PMPL

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

amylee Principal · 1,092 posts #12

omg.. you all have no idea how much i am laughing at all this crap dont use stafflist makes lava secure, change dir on admincp and **** haha omfg

IF.. only it was that easy geezus christ

subzero Super moderator Fellow · 3,954 posts #13

thats is true LMAO

Ppl cant scure a site

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

GiLL Senior · 356 posts #14

No one safe if a professional hacker want hack any site (hacking could start from normal to delete full site) he can do it because there are many other way which we dont know and never know before how to safe a site.. its internet world your single but how many people trying to shut down you ?you dont know its just say try to safe as much as you can your site theese normal tarcks wont work such as hide folder etc its just injection things bruteforce attck , DDOS attacks ,mysql attack (which i get know are days ) try to add /update security if you get any clue such as where is hole ...best of luck

Asking others for help that doesnt mean you dont know any thing ....they may be dont know which knowldge you have ...so share ....

And add this to your .htaccess for even further protection against hacking attempts...

Code:

RewriteEngine on
 
#Prevent SQL injection attempts
RewriteCond %{QUERY_STRING} ^.*(;|<|>|'|"|\)|%0A|%0D|%22|%27|%3C|%3E|%00).*(/\*|union|select|insert|cast|set|declare|drop|update|md5|benchmark).* [NC]
 
#Disable command line hacks via XSS scripting w/ vulnerable PHP options & includes
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)chmod(.*) [OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)chown(.*) [OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)wget(.*) [OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)cmd(.*) [OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)cd%20(.*) [OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)scp(.*) [OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)curl(.*) [OR]
 
#Disable TRACE & TRACK methods
RewriteCond %{REQUEST_METHOD} TRACE [OR]
RewriteCond %{REQUEST_METHOD} TRACK [OR]
 
#Other hack prevention, mostly windows-based
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)/winnt/system32/(.*) [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)/winnt/system/(.*) [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)/windows/system32/(.*) [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)/windows/system/(.*) [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)/cmd\.exe[$|\?(.*)] [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)/msadc/root\.exe[$|\?(.*)] [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)\\\.\.(.*) [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)/admin\.dll[$|\?(.*)] [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)/msadcs\.dll[$|\?(.*)] [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)/ext\.dll[$|\?(.*)] [NC,OR]
RewriteCond %{REQUEST_URI} (.*)/\.(.*) [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)/php\.exe[$|\?(.*)] [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)\|(.*) [OR]
RewriteCond %{REQUEST_URI} (.{255,}) [OR]
RewriteCond %{QUERY_STRING} (.{127,}) [OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} [\x00-\x1f]+ [OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} [\x7f|\xff]+
RewriteRule .* - [F]

left wap stuff

WereWolveZ Developer · 51 posts #16

hehe then why dont u make ur site cookie based and dont host an uploader lol....

With Christmas quickly approaching you’re going to need to get a gift for your werewolf lover and I’m here to help you out. Here are 10 gift ideas perfect for any fan of the furry.😌 http://vampires.com and http://darkness.com

subzero Super moderator Fellow · 3,954 posts #17

The best way to stop being hacked is !!!!!

Buy a freelancer !!!!

Ask him to code you a site that no one has it has too be unknown script from notepad.

Never hire one here as they only edit a lavalair script !

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

kei_ki7 Senior · 431 posts #18

GiLL wrote: No one safe if a professional hacker want hack any site (hacking could start from normal to delete full site) he can do it because there are many other way which we dont know and never know before how to safe a site.. its internet world your single but how many people trying to shut down you ?you dont know its just say try to safe as much as you can your site theese normal tarcks wont work such as hide folder etc its just injection things bruteforce attck , DDOS attacks ,mysql attack (which i get know are days ) try to add /update security if you get any clue such as where is hole ...best of luck

Asking others for help that doesnt mean you dont know any thing ....they may be dont know which knowldge you have ...so share ....

And add this to your .htaccess for even further protection against hacking attempts...

Code:

RewriteEngine on
 
#Prevent SQL injection attempts
RewriteCond %{QUERY_STRING} ^.*(;|<|>|'|"|\)|%0A|%0D|%22|%27|%3C|%3E|%00).*(/\*|union|select|insert|cast|set|declare|drop|update|md5|benchmark).* [NC]
 
#Disable command line hacks via XSS scripting w/ vulnerable PHP options & includes
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)chmod(.*) [OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)chown(.*) [OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)wget(.*) [OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)cmd(.*) [OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)cd%20(.*) [OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)scp(.*) [OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)curl(.*) [OR]
 
#Disable TRACE & TRACK methods
RewriteCond %{REQUEST_METHOD} TRACE [OR]
RewriteCond %{REQUEST_METHOD} TRACK [OR]
 
#Other hack prevention, mostly windows-based
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)/winnt/system32/(.*) [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)/winnt/system/(.*) [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)/windows/system32/(.*) [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)/windows/system/(.*) [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)/cmd\.exe[$|\?(.*)] [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)/msadc/root\.exe[$|\?(.*)] [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)\\\.\.(.*) [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)/admin\.dll[$|\?(.*)] [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)/msadcs\.dll[$|\?(.*)] [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)/ext\.dll[$|\?(.*)] [NC,OR]
RewriteCond %{REQUEST_URI} (.*)/\.(.*) [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)/php\.exe[$|\?(.*)] [NC,OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)\|(.*) [OR]
RewriteCond %{REQUEST_URI} (.{255,}) [OR]
RewriteCond %{QUERY_STRING} (.{127,}) [OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} [\x00-\x1f]+ [OR]
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} [\x7f|\xff]+
RewriteRule .* - [F]

For what is this? 🙂 new in mod Rewrite

Did I help you? You can help me too Your donations will help me finance my studies.

ori Lead · 512 posts #19

u could just delete all tools altogether lol that would solve it or as su zero said pay some1 or code yourself ur site then nobody will no how it works cookies can make it harder but its not full proof say i saw ur code even with cookies i could steal sessions going from url to a cookie doesnt protect ur site best way is u being only person that knows how it works

ranzit2 Developer · 187 posts #20

.Cookies not a complete substitute for prevention of hacking but much good than having nothing.and definately u will loose some visitor who dont had cookie support. cookie steal and see the main forum boards as example vbulletin.when a user has a cookie support.it does not show session in url.when cookies not supported then session is carried in url. And why there many many way pmpl can play with ur site. Just session hack is getting popular.

she is beautifull than php.and i love her more than php.

Write your reply now; next you create a free account (or sign in) and it is posted right away. 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