Wednesday, June 8, 2016

SQLMAP


SQLMAP
SQLMAP
sqlmap -u www --dbs
sqlmap -u www -D sql_db --tables
sqlmap -u www -D sql_db -T user --columns
sqlmap -u www -D sql_db -T user -C UseName --dump
sqlmap -u www -D sql_db -T user -C UseNameAccount --dump


Read More

WPSCAN Test Website

WPSCAN
WPSCAN


wpscan -u http:// --enumerate u
wpscan -u http:// --wordlist direction --username name --threads number
wpscan --url http://wordpress.demo --wordlist /var/www/password.txt --username wordpressdemo1 --threads 10
wpscan --url http://wordpress.demo --wordlist /var/www/password.txt --username wordpressdemo1 -v
Read More

Tuesday, June 7, 2016

Responsive Boostrap

Responsive Boostrap
Responsive Boostrap
xs (768px ≥ xs ≥ 320px) = .col-xs-*
small (991px ≥ small ≥ 768px) = .col-sm-*
medium (1199px ≥ medium ≥ 992px) = .col-md-*
large ( large ≥ 1200px) = .col-lg-*

@media only screen and (min-width: 1200px) {
.grid-offer-photo img {
width: 263px;
height: 185px;
}
}

@media only screen and (min-width: 768px) and (max-width: 1199px) {
.grid-offer-photo img {
width: 330px;
height: 247px;
}
}

@media only screen and (min-width: ...px) and (max-width: ...px) {
// code here
}
Read More

500 internal server error phalcon apache2 solution




#phalcon apache2 500 internal server error - How to solve
#check phalcon
php -i | grep phalcon
# it's done
#check mod_rewrite
php -i | grep rewrite
#it's had
#check apache error
tail /var/log/apache2/error.log
a2enmod headers
service apache2 restart
#It's done
#Thanks watching
Read More

Monday, June 6, 2016

Đi Chơi Quận 9 nhà anh Vũ

Cái muỗng đánh cái tay

Docom Quận 9








Read More

Friday, June 3, 2016

Debug in HomeController


<?php
namespace MyApp\Controllers;
use Phalcon\Mvc\View;
use MyApp\Model\Products;
use MyApp\Model\Posts;
use MyApp\Model\ProductCategories;
class HomeController extends ControllerBase
{
public function indexAction() {
$products = new Products();
$this -> view -> products = $products -> findByLimit(6);
$posts = new Posts();
$this -> view -> posts = $posts -> findByLimit(4);
$this -> view -> titleForLayout = "Trang chủ - ".DEFAULT_NAME;
$categories = new ProductCategories();
$result = $categories->getMenuToTree();

echo "<pre>";
print_r($result);exit;
}

}
Read More

Thursday, June 2, 2016

Tạo Breadcrumb cho Blogger


Tạo Breadcrumb cho Blogger
Tạo Breadcrumb cho Blogger

Tạo Breadcrumb thân thiện với SEO cho Blogger, bao gồm 3 bước:
  1. Khai Báo breadcrumb
  2. Tìm dòng có đoạn code như vầy
    <b:include data='top' name='status-message'/>

    Thay thế bằng dòng sau:
    <b:include data='top' name='status-message'/>

    <b:include data='posts' name='breadcrumb'/>

    Thay thế thêm 1 lần nữa
    Tìm dòng có đoạn code như vầy lần tiếp
    <b:includable id='main' var='top'>

    Thay thế bằng:
    <b:includable id='breadcrumb' var='posts'>
    <b:if cond='data:blog.homepageUrl == data:blog.url'>
    <!-- No breadcrumb on home page -->
    <b:else/>
    <b:if cond='data:blog.pageType == "item"'>
    <!-- breadcrumb for the post page -->
    <p class='breadcrumbs'>
    <span class='post-labels'>
    <a expr:href='data:blog.homepageUrl' rel='tag'>Home</a>
    <b:loop values='data:posts' var='post'>
    <b:if cond='data:post.labels'>
    <b:loop values='data:post.labels' var='label'>
    <b:if cond='data:label.isLast == "true"'> »
    <a expr:href='data:label.url' rel='tag'><data:label.name/></a>
    </b:if>
    </b:loop>
    <b:else/>
    » Unlabelled
    </b:if>
    » <span><data:post.title/></span>
    </b:loop>
    </span>
    </p>
    <b:else/>
    <b:if cond='data:blog.pageType == "archive"'>
    <!-- breadcrumb for the label archive page and search pages.. -->
    <p class='breadcrumbs'>
    <span class='post-labels'>
    <a expr:href='data:blog.homepageUrl'>Home</a> » Archives for <data:blog.pageName/>
    </span>
    </p>
    <b:else/>
    <b:if cond='data:blog.pageType == "index"'>
    <p class='breadcrumbs'>
    <span class='post-labels'>
    <b:if cond='data:blog.pageName == ""'>
    <a expr:href='data:blog.homepageUrl'>Home</a> » All posts
    <b:else/>
    <a expr:href='data:blog.homepageUrl'>Home</a> » Posts filed under <data:blog.pageName/>
    </b:if>
    </span>
    </p>
    </b:if>
    </b:if>
    </b:if>
    </b:if>
    </b:includable>
    <b:includable id='main' var='top'>
    Tới đây là xong gòy, chỉnh thêm Css bên dưới mớ cho xinh xinh
  3. Chỉnh CSS
  4. Tìm đoạn ni
    ]]></b:skin>
    Thêm ở bên dưới để blog nhận được css
    .breadcrumbs {
    padding:5px 5px 5px 0px;
    margin: 0px 0px 15px 0px;
    font-size:95%;
    line-height: 1.4em;
    border-bottom:3px double #e6e4e3;
    }
    .breadcrumbs a, .breadcrumbs span {color:#ffffff}

Nguồn Tham Khảo allbloggingtips.com
Read More