use HTTP::Request::Common qw(POST);
  use LWP::UserAgent;
  $ua = LWP::UserAgent->new;
  my $req = POST 'http://192.168.1.157',Content_Type => 'form-data',Content => [ search => 'www', errors => 0 ];
  $ua->request($req);


o>_<o

'programming > perl' 카테고리의 다른 글

HTTP 파일업로드(Perl)  (0) 2009.12.30
web login dictionary attack  (0) 2009.12.03
apache log shooter(GET)  (0) 2009.10.11
WireShark HTTP파싱 스크립트  (0) 2009.09.30
HTTP요청 스크립트(ActivePerl)  (0) 2009.09.30
Posted by applicationlayer
:
IE 8.0에서는 Registry에서
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
요기 에다가
DWORD 로 "SessionMerging" 라는 이름으로 값을 0 으로 하면 요 기능 해제가능합니다

또는

"C:\Program Files\Internet Explorer\iexplore.exe" –nomerge 를 이용하여 실행시키믄 됩니다

'tips' 카테고리의 다른 글

DEP 해제  (0) 2009.12.29
Apache DefaultCharset  (0) 2009.12.04
DbgView  (0) 2009.10.23
Microsoft Network Monitor  (0) 2009.10.02
WireShark의 부가기능  (0) 2009.10.01
Posted by applicationlayer
:

[펌]메시지훅 예제

hooking 2009. 11. 2. 10:09 |
출처: wowhacker

// dll.cpp : Defines the entry point for the DLL application.
//

#include "stdafx.h"

#ifdef _MANAGED
#pragma managed(push, off)
#endif

#pragma data_seg("SHARDATA")
static HINSTANCE hInstance;
static HHOOK hook_inst;
static int hooked;
#pragma data_seg()

LRESULT CALLBACK keyboardproc(int nCode, WPARAM wParam, LPARAM lParam)
{
    if(nCode>=0)
    {
        if((wParam==32) && (((lParam >>30) & 1)==0)&& hooked==0)
            MessageBox(0, "hello world!","DLL Injection Ex",0);
    }
    return CallNextHookEx(hook_inst,nCode, wParam, lParam);
}

extern "C" __declspec(dllexport) int sethook()
{
    HWND h;
    DWORD pid;

    h=FindWindow(0,"계산기");
    if(h==0)
    {
        return 0;
    }

    hook_inst=SetWindowsHookEx(WH_KEYBOARD,keyboardproc,hInstance,GetWindowThreadProcessId(h,NULL));
    return 1;
}

extern "C" __declspec(dllexport) int unhook()
{
    MessageBox(0, "UnHook!","test",0);
    UnhookWindowsHookEx(hook_inst);
    return 1;
}



BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
                     )
{
    switch(ul_reason_for_call)
    {
    case DLL_PROCESS_ATTACH:
        hInstance=hModule;
        hooked=0;
    case DLL_THREAD_ATTACH:
        break;
    case DLL_THREAD_DETACH:
        break;
    case DLL_PROCESS_DETACH:
        break;
    }
    return TRUE;
}


'hooking' 카테고리의 다른 글

outputdebugstring사용  (0) 2011.06.25
지뢰찾기 핵  (0) 2009.11.01
hooking_study_1  (0) 2009.10.23
DLL Injector  (0) 2009.10.02
Posted by applicationlayer
: