Programming and Coding
Programming and coding tips, help and solutions...
1,877 topics in this forum
-
WinCrypt API - RSA
by deepzero- 3 replies
- 10.2k views
Hi there, I was trying to implement a simple RSA signature verification scheme. Fortunately, Microsoft gives an example of using the crypto apis, which does precisely that: />http://msdn.microsoft.com/en-us/library/aa382371%28v=vs.85%29.aspx This looks good, but doesnt actually work. The second api call, CryptGetUserKey() fails. GetLastError() returns "0x8009000d", which is not defined to my knowledge. am i missing something...? d.
-
PLC Information and Links
by atom0s- 5 replies
- 10.3k views
PLC (Programmable Logic Controller) />http://en.wikipedia.org/wiki/Programmable_logic_controller Wiki: Computing Library: Power Point Example of PLC Ladder Logic (Link from Wiki) />http://claymore.engineer.gvsu.edu/~jackh/books/plcs/powerpoint/ch01.ppt PLC History (http://www.plcs.net/chapters/history2.htm) PLC Links and Information [* ]http://www.plcs.net/contents.shtml - Lots of PLC information, various diagrams, etc. [*]http://www.allaboutcircuits.com/vol_4/chpt_6/6.html - PLC Ladder Logic information. Code Listings, Examples, Emulators [* ]http://www.codeproject.com/KB/miscctrl/PLC_simlutor.aspx - MFC C++ PLC Emulator [*]http://www.codeproject.com…
-
Visual Studio 2010 Image Library
by Killboy- 3 replies
- 12.3k views
I was wondering if anyone who has Visual Studio 2010 installed, could upload the Visual Studio 2010 Image Library? It's a single zip with bitmaps and icons that can be used for Windows applications, it's located at Google didn't come up with anything downloadable and I'd prefer not to download and install VS2010 just for the icons. So if anyone has it and could upload it, I'd appreciate it a lot. Thanks
-
Manually processing relocations
by deepzero- 1 follower
- 17 replies
- 7.7k views
hi, i am trying to manually rebase a PE32 file, ie instead of having the windows loader load it, i read the file myself and manually resolve imports, relocations, etc. import processing went fine, but the relocation stuff just doesnt work. I can get a pointer to the DWORD that needs to be relocated, but somehow the the delta is incorrect or whatever. So i tried to manually rebase it, but failed :S rebaset this push: //original code 0040106E 68 79204000 PUSH 00402079 ; ||FileName = "Keyfile.dat" original imagebase: 400000 new imagebase: 6d000 delta = new - original hexa: FFC6D000h = 6d000h - 400000h = delta decimal: delta = 446464d - 4194304d = -3747840d 79…
-
- 0 replies
- 3.6k views
Microsoft All-In-One Code Framework Are you frustrated by the lack of code samples for a certain programming task? Have you ever struggled to quickly get started with a technique? Have you expected someone to write code samples for you based on your requests for free? Is a one-stop code sample library for all Microsoft development technologies attractive to you? If your answer is YES to any of these questions, the Microsoft All-In-One Code Framework is for you! The Microsoft All-In-One Code Framework is a free, centralized code sample library driven by developers' needs. Our goal is to provide typical code samples for all Microsoft development technologies, and reduce dev…
-
- 1 reply
- 3.1k views
Hello tuts4you, While I was waiting for some brute-forcer to complete I decided to start this mini-project because I always hate "Reversing" long HEX data (eg C3 6B 88 E5 FD 90 8F DA 19 51 40 F9 27 C1 AB 3E 05 49 4C 5A C7 to C75A4C49053EABC127F9405119DA8F90FDE5886BC3) Screenshot: Download Greetings, Mr. eXoDia // T.P.o.D.T 2011 mr.exodia.tpodt@gmail.com http://www.tpodt.com HexReverse_mini.rar
-
How to Convert RVA to Offset ?
by h4sh3m- 10 replies
- 8.7k views
hi dears I'm looking for delphi source that convert RVA to Offset. I found some code but those not work and I can't fix them. please help me to do it. tnx & sorry for poor english
-
Delete
by 0xFF- 13 replies
- 7.6k views
Delete.
-
OllyDetach - OllyDbg 2.x Plugin
by atom0s- 2 replies
- 6.6k views
No longer sharing this project on this site.
-
Tunneling in .NET
by w00tare- 0 replies
- 8.6k views
Hey, Currently I'm learning things about networking, I downloaded a license-protected program and now I'm trying to tunnel it's packets. I already have the IP and port of the application. I also found what packet I need to edit to make it like I'm a 'real' user, I tried to receive the packets but no luck. Any info on this would be greatly appreciated.
-
Help in Hook Winsock API
by Marquinho- 11 replies
- 11.7k views
i am try create a dll i get create but, i need this dll hook winsock api and use this send function of program TCP/IP Client for send packets, with Socket id.. This dll based on wpeSpy. for send packets in the program. i used void __cdecl Send( const char* szText ) { UINT_PTR adr = 0x00402800; //function address __asm { push szText mov edx, szText mov ecx, edx call adr } } but i dont understand works. Att.Marquinho
-
Assembly Compiler
by X-88- 2 replies
- 17k views
what is the difference between Easy Code go to the Assembly with Microsoft Assembler? ... and why when I compile the source code with Easy assembly Code go to the Assembly always occur Error? ... Help me Please!... I forgot Tuts4you.com Passwordku in long-but I can not reset it why ?.... The name of my old X-88 :help :help
-
- 8 replies
- 3.8k views
Hi Guys, I've recently written some code in C which searches for a 40-bit key used to encrypt a known plain text. The code works and is able to find a known key to find for a given cipher text. The trouble is that is that rate of keys searched is very low, say 4-5,000 keys/sec. Despite running this on an old PC (Athlon XP 2200+) I know I should be seeing much faster results. For example, using APDFPR as a benchmark, I can see an average rate of 1.7x10^6k/s. My compiler settings (GCC and VC6) are optimised for speed and for my processor. I've also replaced the array subscripting with pointers as I remember reading that this is a faster method. Neither of these made any …
-
char* not valid syntax in WDK?
by Saduff- 9 replies
- 5.2k views
For some reason the WinDDK thinks this is not valid syntax: char* Hello = "Hello World!";The build utility gives these errors: I was using the x86 WinXP Free Build Environment. The code is in C. Also, is char* correct type to pass as PCHAR to API?
-
- 21 replies
- 6.4k views
This is definitely a challenge. I've been trying to create an difficult to crack login-system because it seems incredibly difficult to do. I mean, many login systems out their can be detoured by a single jump, and I wanted to challenge myself to create something which can try and avoid the easy detour of user login. Heres what I planned to do, please point of flaws and suggest some ideas. Login: Client which the user enters login details into. If the login details checkout with the server, the server will generate a hash based on the current time (to the day), the username, and the password, return it, and store it in the user's registry. This hash is hereby called the Us…
-
[Native/C] Reading keyboard input
by Saduff- 0 replies
- 4k views
I'm writing a native application in C (/SUBSYSTEM:NATIVE) and need to check if a key combination was pressed. It works, but it only captures the first packet of keyboard input data (i.e only first key pressed), however I need to check 4 keys simultaneously. Here's the code I used for testing: UNICODE_STRING NtReadKeyboardInput() { LARGE_INTEGER Interval; UNICODE_STRING input; UNICODE_STRING keyboardDeviceName; OBJECT_ATTRIBUTES objectAttributes; IO_STATUS_BLOCK ioStatusBlock; WCHAR show[200]; NTSTATUS status; HANDLE keyboardHandle; UNICODE_STRING message; KEYBOARD_INPUT_DATA inputData[3]; USHORT usMakeCode; USHORT usFlags; //----------------- …
-
Loader and Exception Handling
by snoopy- 2 replies
- 7.5k views
Hey guys, I was wondering if anyone has experience with using a loader to create a process and install an exception handler. The thing I want to figure out if possible is to let the loader be the exception handler. I know SEH is per thread used so that would mean I would have to inject a DLL for example and install the exception handler. I was wondering if it is possible to use a Loader program which uses: CreateProcess API and install an exception handler to it. So when exception in program occurs it goes to handler from the loader. Best regards.
-
.NET Directory Flags
by w00tare- 21 replies
- 12.4k views
Hey, I'm trying to build a program that shows me the flags of the .NET Directory of a file in C#. (This is from CFF Explorer) But I'm having a hard time finding some sort of Algorithm to find out when what checkbox needs to be checked. Hoping someone can help me, Thanks.
-
CreateThread C++ / asm
by equlibrium- 4 replies
- 4.1k views
Hello. Problem is that i don know how to Thread for in my dll code ! For my exe i have added dll load . Dll file will load and exit but i need it runn all time. I post her my dll src i hope some one can help made that theard and post asm info for theard . Ty Best regards Peter [ sorry my bad English ] Some ss how dll is hooked meaby hook is wrong />http://www.upload.ee/image/1519109/client2.png />http://www.upload.ee/image/1519105/client1.png killhacker now changed DLLkill Antihack src />http://www.upload.ee/files/1537610/antihack.7z.html
-
Skinning a static Box in Dialog?
by hmi222- 1 reply
- 5.5k views
Hi. Im trying to skin a Static Box in a dialog with a Region. But it doesnt work at all. The Dialog itself skins with its Region. Trying for the Static Box: invoke GetDlgItem,hWnd,IDC_Static1 ;Getting the hwnd of StaticBox mov hWnd_OGL,eax invoke CreateEllipticRgn ,20,-20,190,150 ;create an eliptic Region invoke SetWindowRgn,hWnd_OGL,eax,TRUE ;apply to Static Box. ---> after that Box is as Orginal , a Rectangle! so is it possible to skin a Dialogbox Control???? Thanx in advance
-
[c++,gui]
by deepzero- 5 replies
- 7k views
hey, i need to have a simple c++ gui, using the msvc++2008pro IDE. It`s just a small project, so i didnt want to bring wwwidgets or similar into the game... Since the build-in resource editor doesnt display the location and size of single dialog items (for unknown reasons...) i was looking for an alternative and came across this: ResEdit 154 - http://www.resedit.net/ That resource editor is awesome...unfortunately, its generated .rc scripts are not compitable with msvc++2008pro, even though the homepage says different: Adding a simple dialog resource created by ResEdit crashes msvc++: // Generated by ResEdit 1.5.4 // Copyright (C) 2006-2010 // http://www.resedit…
-
Adding Custom Login
by Dave Prost- 5 replies
- 8.2k views
Hi I have a compiled app that I want to add a login program too. I've written the login program and compiled it. My first thought was adding a code cave but when I look at the login assembly it's pretty big so I'm not sure if there will be enough space for a code cave. Is there a better way? Can I merge the two programs together and then maybe make a jump at the start of the first program to go to the login app? Then depending on the return value continue loading app 1 or exit. I'm just guessing here as i'm really not sure of the best way to proceed so any hints or tips would be greatly appreciated. Thanks D
-
- 4 replies
- 4.6k views
Hi all, I am coding next version of Hash calculator and I am thinking to add support for PEiD plugins. I know that PEiD plugins have two main calls LoadDll DoMyJob But, what I want to know is that, how to dynamically load the dlls present in the folder of Hash calculator ? As in PEiD, just copy the plugin into the plugin folder and the plugin will be working. Same thing I want to do. Just copy the plugin to the Hash calculator folder and the plugin will be working with calculator. How to do this ? Oh, one more thing, I am coding in MASM, so codes in assembly will be more useful. Thanks
-
- 4 replies
- 4k views
Hi masters, I am new here on tuts4you. I need help of you guys. I am coding an personal hasher tool in ASM with the help of cryptohash lib. I am having problem with EnCrypters like MARS It's not giving me proper hash and not decryting it too. Here is a piece of code, I have coded. invoke GetDlgItemText,hWin,EDIT_KEY,addr key,sizeof key mov keysize,eax invoke GetDlgItemText,hWin,EDIT_INPUT,addr inbuff,sizeof inbuff invoke MARSSetKey,addr key,keysize invoke MARSEncrypt,addr inbuff,addr hash invoke HexEncode,addr hash,16,addr outbuff invoke SetDlgItemText,hWin,EDIT_HASH,addr outbuff invoke RtlZeroMemory,addr inbuff,sizeof inbuff …
-
Coding unpacker
by snoopy- 8 replies
- 9.6k views
Hey Guys, Recently got into the nice field of coding unpackers instead of using WinDBG scripts/ plugins. What I am facing is something that has to do with coding a import reconstructor. I am simply testing it on a UPX protected file to get a good understanding. IAT on my original unprotected file is at 41410C (VA). When the file is packed the PEheader is being changed to RVA 17A94 (417A94) this is a fake IAT address. Now what I am trying to do is figuring out how to code a tool to rebuild it for me. So I first need to find the real IAT. I read that Imprec could use 2 techniques: signature scanning, API 'hooking'. When I signature scan for FF25 [Jmp Address] I am able to f…