<?php
session_start(); # mulakan sesi
$_SESSION[$key] = 'auam';
if (isset($_SESSION[$key]))
return $_SESSION[$key];
session_unset();
session_destroy();
?>
<?php
?>
Latihan 1.2 : Contoh namafail.php<?php
echo 'Aku tanya apa khabar';
?>
<?php
?>
CREATE DATABASE databasename
CREATE TABLE table (id INT)
<?php
?>
Latihan 36 : Mencipta table<?php
?>
DROP databasename
DROP TABLE table1, table2
<?php
?>
INSERT INTO table (field1, field2) VALUES(15,20)
INSERT INTO table (field1, field2) VALUES(15, field1*2)
<?php
?>
SELECT * FROM table ORDER BY field1
SELECT field1 FROM table WHERE jawatan='SA'
SELECT t1.*, t2.* FROM table1 AS t1, table2 AS t2 WHERE t1.field=
t2.field
<?php
?>
UPDATE table SET field1='Makan'
UPDATE table SET field1='Minum' WHERE id='17'
<?php
?>
DELETE FROM table LIMIT 10
DELETE FROM table WHERE id='17'
<?php
?>
<?php
Attacks with Hands-on Labs on SQL Injection,
Cross Site Scripting, Cross Site Request Forgery,
LDAP Injection, Command Injection,
Parameter/Form Tampering, Improper Error Handling,
unvalidated Input, Directory Traversal,
Cookie Poisoning, Insecure storage,
Information Leakage, Broken Account Management,
Denial of Service, Buffer Overflow, Log Tampering,
Broken Access Control, Broken Session Management,
Session Fixation, Security Misconfiguration
?>
<?php
Symptoms of Attacks and Investigating SQL Injection,
Cross-Site Scripting (XSS),
Command Injection Attacks, File Upload Attack,
Log Tampering, Directory Traversal,
Parameter/Form Tampering and many more from
Server Logs, Firewalls and IPS / IDS
?>
<?php
?>
<?php
?>
<?php
Passive and Active Information Gathering, Passive Recon Firefox Addon, Information
intelligence with Maltego, Information intelligence with FOCA, Firefox Add-ons, W3af, Samurai,
SQLMap, Paros, Backtrack 5 R2, Acunetix Web Scanner and many more tools with Hands-on Labs
?>