Hiển thị các bài đăng có nhãn .htaccess. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn .htaccess. Hiển thị tất cả bài đăng

Thứ Năm, 24 tháng 10, 2013

Một số cấu hình trên file .htaccess

http://www.igorescobar.com/blog/wp-content/uploads/2011/11/apache_htaccess.jpg
1. .htaccess là gì?

1.1. .htaccess là gì

.htaccess là một file cấu hình sử dụng cho các web server chạy Apache. .htaccess dùng để thiết lập các tùy chọn: thực thi hay loại bỏ các chức năng, tính năng của Apache

READ MORE »

Thứ Bảy, 6 tháng 7, 2013

How to hide your shell using .htaccess

http://thaidt.net/wp-content/uploads/2012/03/htaccesssw.jpg

Today I want to show you a less known trick in which you can use .htaccess file. Already available on server as a shell to execute OS commands, so just follow the simple steps described below. This file is also useful to add restrictions on files.

Open your PHP web shell, navigate to public_html directory and search for .htaccess file, once found, click on edit option.

READ MORE »

Thứ Bảy, 19 tháng 1, 2013

.htpasswd crack exploit

#! /usr/bin/perl
# crack.pl by fwaggle root@fwaggle.net
open (PASSFILE, "senhas");
my @passfile = <PASSFILE>;
close PASSFILE;
open (DICTFILE, "dictionary.txt");
my @dictfile = <DICTFILE>;
close DICTFILE;
foreach $line (@passfile) {
my ($username, $encpass) = split(/:/, $line);
foreach $attempt (@dictfile) {
if ($encpass eq crypt($attempt, $encpass)) {
print("Cracked: ${username}:${attempt}\n");
}
}
}

Thứ Hai, 24 tháng 12, 2012

osCommerce Authentication Bypass (misconfigured htaccess)

#Exploit Title : osCommerce Authentication Bypass (misconfigured htaccess)
#Google Dork : "Powered by osCommerce" or you can try own dorks
#Exploit Author: D35m0nd142
#Vendor Homepage: http://www.oscommerce.com/
#Tested on: Linux Ubuntu 12.04 with Firefox 17.0
#Version: This exploit works on old versions of osCommerce
READ MORE »

Thứ Sáu, 7 tháng 12, 2012

301 Redirect toàn tập (PHP, ASP, ASP.NET, JSP, HTACCESS)

Bài này Bình sẽ hướng dẫn chuyển hướng Website 301 Redirect ở những dạng code thường dùng hiện nay (PHP, ASP, ASP.NET, JSP, HTACCESS)

PHP Redirect:
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.new-url.com" );
?> 

READ MORE »