Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
O

only_jack

@only_jack
About
Posts
15
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to import a file into PE header of an exe then load that file from within modified exe
    O only_jack

    why are you getting all wrong

    DavidCrow wrote:

    The BMP file you want to insert is that sensitive?

    BMP was an example i will use something else , maybe you forget to do your glasses while reading my question

    DavidCrow wrote:

    Once you replace the PE headers with some other file, that modified file will no longer function. So what purpose does it serve?

    i never said that i want to replace X| i want to replace nothing , i want to import a new section

    DavidCrow wrote:

    The cynic in me smells a Trojan horse (i.e., trying to hide the nefarious file from AV software by wrapping it with some other legitimate file).

    :thumbsdown::thumbsdown: why i will do this for a malicious purpose , all of AVs can scan PE headers you should know this as a MVP :confused:, if i want to hide a file from user or AVs , i can easily import it to a NTFS portion as a ADS :laugh: but i am killing my hours against them :^) if i was looking for some malicious resources trust me i can find them on the net in few seconds :thumbsup: , even in codeproject site there are lots of articles like how to inject your code to another process maybe first you should check those articles firs which you approved and publised finally , i will explain it a bit more the compiled exe uses a %80 modified Lua interpreter do you know Lua and i am importing some modified Lua scripts in to compiled exe's resources and then i am getting these scripts through resource API functions then redirect the file buffer to luaL_loadbuffer() function of LUA C API interpreter parses this file and generates some reports so i am uploading this file to FTP and users download it priodically and run to get some report about a main program ,and it will edit some portions of main installition if necessary with user's permission (i hope now you do not get this like i am making a pacher) finally it will generate a report like below and present some options to user ------------------------------------------------- your installition needs an update x database is absolete , y file needs a update , the purpose that you having trouble to understand was the automation of some report procedures do you know an idiot who spends hours to do above to make a simple damn trojan , whereas it can be done within minutes

    C / C++ / MFC tutorial

  • How to import a file into PE header of an exe then load that file from within modified exe
    O only_jack

    no , i will compile exe and then create another program to import specified file to compiled exe , target exe will not work at this time i want to implement a simple compiler for my own use i have a program that parses a custom file format currently i am importing files to resource section already through another program that i made so select file and import into resource section of target exe then i run modified exe it will load that file from resource and execute resource method works very well but i do not find it secured enough i want to implement some thing with PE headers now i want to import file into PE header of a precompiled exe and then read at runtime , through functions i wrote before compile target exe

    C / C++ / MFC tutorial

  • How to import a file into PE header of an exe then load that file from within modified exe
    O only_jack

    How to import a file into PE header of an exe then load that file from within modified exe i searched CP about this but found nothing relevant the articles i found were mostly code injection based simply i want to import a file ( ex: BMP) into PE header of a compiled exe then read this file through a predefined function from within compiled exe is it possible , if possible could you show me how to do thanks

    C / C++ / MFC tutorial

  • how to convert comma delimited string to unsigned char[]
    O only_jack

    i have a byte array in a string that i read from a resource i used CString for example , i can use any other string types i want to convert a comma delimited byte array string CString stringarr = "5,10,15,20,25"; to unsigned char[] unsigned char myarray[]={5,10,15,20,25}; i tried some for loop but result is always different than actual data maybe i am doing something wrong with that can you help me please thanks.

    C / C++ / MFC tutorial data-structures help learning

  • How to enable tooltips on CWnd or CStatic derived class that is created by a regular MFC dll
    O only_jack

    thank you for your reply but the problem is not that ,i knew that and tried but it does not work because,i am creating the control from a dll , i think this is related with the message loop, but i could not find a solution to this this is a relevant link and this was not work also http://support.microsoft.com/kb/187988/en-us[^] thanks

    C / C++ / MFC help c++ tutorial

  • How can i create .jpg file programatically
    O only_jack

    lol very funny :laugh:

    C / C++ / MFC question

  • How to enable tooltips on CWnd or CStatic derived class that is created by a regular MFC dll
    O only_jack

    hi, i am creating some CStatic based controls on a dialog with a regular MFC DLL. (MFC statically linked) so ,main application calls some functitons in DLL, Like: Create ,Resize ,Move and DLL creates control on main app's dialog and manages control as main app needs my problem is: with this method , tooltips , TAB , CTRL + combinations do not work could you help me to solve this problem, Please thanks in anvance

    C / C++ / MFC help c++ tutorial

  • CDO mail header setting please help
    O only_jack

    hi, this is a part of a mail function that uses CDO. function works well with normal fields & settings and sends mail very good but i cound not set the header part of a e-mail. so , Importance is one of headers that i want to set . but it does not work could you help me to set importance header with this code block. the bold part of code what i did so far but no succeed. thanks in advance note: i did not add whole function because it is too long -------------------------------------------------------- CoInitialize(NULL); HRESULT hr = NULL; IMessage *pMsg; IConfiguration *pConfig; Fields *pFields; Field *pField; hr = CoCreateInstance(__uuidof(Message), NULL,CLSCTX_INPROC_SERVER,__uuidof(IMessage),reinterpret_cast<void**>(&pMsg)); hr = CoCreateInstance(__uuidof(Configuration), NULL,CLSCTX_INPROC_SERVER,__uuidof(IConfiguration),reinterpret_cast<void**>(&pConfig)); pConfig->get_Fields(&pFields); COleVariant sFname((LPCTSTR)"urn:schemas:mailheader:Importance"); pFields->get_Item(sFname.Detach(),&pField); COleVariant sImportance((LPCTSTR)"high"); pField->put_Value(sImportance.Detach()); pFields->Update(); pMsg->put_Configuration(pConfig); hr = pMsg->Send(); if (FAILED(hr)) { _com_error err(hr); szReturnVal = err.ErrorMessage(); } if (pFields) { pFields->Release(); } if (pField) { pField->Release(); } if (pMsg) { pMsg->Release(); } if (pConfig) { pConfig->Release(); } CoUninitialize();

    C / C++ / MFC announcement help workspace

  • how can i send mail in an MFC application using "CDO.Message"
    O only_jack

    i can easily send mails with ASP VB etc.. but i could not send mail with "CDO.Message" in C++ i have tried lots of sample code around the web but none of them worked well, i am always getting lots of compiler error please , could you show me a working sample that uses "CDO.Message" Here is a sample[^] from MSDN envirounment Visual Studio .NET 2003 note : i do not want to use a pre-written SMTP class (FireWall problems etc..) thanks.

    C / C++ / MFC csharp c++ visual-studio com help

  • how can i overwrite IDocHostUIHandler::ShowContextMenu()
    O only_jack

    hi i have a dialog based MFC application with a web browser control i have created it dynamicaly with CWnd wrapper class i am creating control like below and i want to control contex menu of the web browser

    int CHolderWnd::OnCreate(LPCREATESTRUCT lpCreateStruct)
    {
    if (CWnd::OnCreate(lpCreateStruct) == -1)
    return -1;

    DWORD dwStyle = WS\_CHILD|WS\_VISIBLE;
    
    m\_pWebCtrl = new CWebBrowser2;
    if(!m\_pWebCtrl->Create(NULL,NULL,dwStyle,CRect(0,0,0,0),this,ID\_WEB\_WINDOW))
    {
    	return -1;
    }
    
    return 0;
    

    }

    after some search i found this link http://msdn.microsoft.com/en-us/library/aa770042(VS.85).aspx[^] but i do not know how to use it can you give me a clue about how to start this task thank you

    C / C++ / MFC c++ visual-studio com tutorial question

  • How to detect mouse click on application taskbar button???
    O only_jack

    this style may add a resize border to your window

    WS_THICKFRAME

    also check this[^] link for all window styles

    C / C++ / MFC question tutorial

  • How to detect mouse click on application taskbar button???
    O only_jack

    apply these styles to your window these will enable sys menu on taskbar button and will enable minimize & maximize selections on menu

    WS_SYSMENU|WS_MINIMIZEBOX|WS_MAXIMIZEBOX

    C / C++ / MFC question tutorial

  • how to remove border of web browser object
    O only_jack

    yes of course SetWindowlong() CWnd::ModifyStyle() not working or i could not implement

    C / C++ / MFC c++ com help tutorial

  • how to remove border of web browser object
    O only_jack

    hi it is a dialog based MFC application it has only a dialog with a web browser (activex)object i have created it dynamicaly with CWnd wrapper class everything ok and works well but i want to remove sunken border of web browser object i want it to be complete flat ,is it possible i have tried something with class name Internet Explorer_Server but no success can you help me with this also is there a way to disable contex menu of web browser object thank you

    C / C++ / MFC c++ com help tutorial

  • use of "SECTION" within a hook dll ..?
    O only_jack

    hi to all i want to store some string datas in a CString or similar variable and i need a int variable also this is a global hook dll and i want to update this variables at runtime and all applications should access to this variables which load this dll simly : i can say this dll will be a bridge between applications which load this dll i have found the following sample but i could not write a working one from it application exits with crash always note: the following sample copied from a C project and my dll is a MFC/C++ dll thank you

    #pragma data_seg(".shared")
    #pragma comment(linker, "/section:.shared,rws")

    HHOOK g_hHook = 0;
    HWND g_hwndNotify = 0;
    BOOL g_FirstInstance = FALSE;

    UINT g_nButtonCmdId[MAX_TITLE_BUTTONS] = { 0 };
    UINT g_nButtonResId[MAX_TITLE_BUTTONS] = { 0 };
    int g_nButtonCount = 0;

    WCHAR g_szBlackList[MAX_BLACKLIST][64] = { 1 };
    LONG g_nBlackListLen = 0;

    #pragma data_seg()

    C / C++ / MFC c++ question announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups