Programming and Coding
Programming and coding tips, help and solutions...
1,882 topics in this forum
-
- 3 replies
- 2.7k views
Hi all , i'm coding a MASM32 program under Winasm IDE how to add the List control SysListView32 on my Dialogbox Of course ,How to add and edit item in the list I think this ctrl is in the Ole32.dll (Not a custom one) waiting for your help THANX ...
-
delphi keygenning help
by Accede- 13 replies
- 4.6k views
Can any god keygener me help on this mistake her is the code: procedure TForm1.btn1Click(Sender: TObject); const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; var N,A,B,C,D,E,F,i:Integer; serial1,S,U,V,W,X:string; Activation:array of Char; begin serial1 :=''; begin if cbb1.Text = 'OJOsoft DVD Ripper'then//cbb is combobox if cbb1.Text = 'OJOsoft Total Video Converter' then if cbb1.Text = 'OJOsoft iPod Video Converter' then if cbb1.Text = 'OJOsoft DVD Audio Ripper' then if cbb1.Text = 'OJOsoft WMA to MP3 Converter' then if cbb1.Text = 'OJOsoft DVD to AVI Converter' then if cbb1.Text = 'OJOsoft WAV to MP3 Converter' then if cbb1.Text = 'OJOsoft DVD to PSP Converter' then…
-
Problem with PE section Injection
by DarkInjection- 4 replies
- 4.3k views
hello this is my first post here i m writing a program to add a new section into the PE at the moment.... but somegthing goes wrong im trying to locate what its worng but nothing yet u can find the source here: infection.h typedef struct _StaffToUse { DWORD EIP; DWORD IMAGE_BASE; DWORD VEP; DWORD NumbOfSections; DWORD WinExec_; DWORD LoadLib_; DWORD ExitProc_; DWORD *VirtualS[32]; DWORD *SizeOfRaw[32]; DWORD *PointerToRaw[32]; DWORD *VirtualAddr[32]; BYTE *SectionNames[32];} StaffToUse;typedef struct _DWDataStorage{ BYTE *dwData;}DWDataStorage;//cracps HANDLE hFile,oFile = NULL; DWORD dwBytesRead; DWORD Sections; DWORD fSize = 0; PCHAR pMem; IMAGE_NT_HEA…
-
Nice op-code reference program
by DoNotUseFoulLanguage- 12 replies
- 4.2k views
Hope you like this, i found it pretty useful Made by Yury Lukach opcodes.zip
-
debugging the errors
by ajaytvish- 1 reply
- 2.7k views
//can somebody help me with the solution of this error : //I am trying to compile the below assembly code on borland v5.02 & tasm assembler v5.0 ;PROGRAM filename setpath.asm .386p ;enable Intel 386 (with privileged) instructions .model flat,stdcall ;flat memory model, for Win32 applications .radix 10 ;numbers default to base-10 jumps ;jumps get calculated and adjusted include Win32.inc ;basic Win32 application constants and structures ;Advapi32.dll extrn RegOpenKeyExA:proc ;external API declaration extrn RegSetValueExA:proc extrn RegCloseKey:proc ;Kernel32.dll extrn GetCurrentDirectoryA:proc extrn E…
-
Call c++ member function through asm
by urbanyoung- 2 replies
- 3.4k views
Hey, I'm trying to call a c++ class member function through asm. I believe the this param (class id) is passed using ECX in the function call, getting this is no problem. However, when I call the function (with the class id in ECX) the function doesn't crash like before, but it returns incorrect data. I was wondering if anything else needs to be passed to the function or if ECX is infact the class id used to associate data with the caller. Any tips would be appreciated.
-
x64 assembly
by sakr22- 6 replies
- 11.4k views
in visual c++ 2005 x64 it doesn't support the inline assembly __asm so to write assembly i must write it in a .asm file then call it from my code i need a tutorials for writing x64 assembly and how to call it as a function from c++ or at least i nead an x64 IDE assembler thnx in advance
-
dl help asmcom
by magicrain@hotmail.com- 2 replies
- 6.1k views
Hey folks i need some help with a asm line...how i could do that in delphi ? SAR EAX,1 ROL EAX,3 XCHG EAX,ESI < i need that in delphi but how :S?
-
- 0 replies
- 2.3k views
Hi, I am just asking how to read text that is multilined, in a text box, into a formatted memory buffer. This is needed because the required function that needs the text, expects it to be formatted. And so, the app fails because the text is not formatted properly (with newlines etc). The language the project is written in is C++, with zero MFC or .NET. Any assistance at all would be appreciated. EDIT: Worked it out. For some odd reason, the edit control's contents (which are on tabs) are not read...
-
HOW MAKE A LINT IN C++
by DavidOliveira- 1 reply
- 2.7k views
i wanna make a link in my application go to a site anyone can helpe like to do
-
*delete thread*
by mudlord- 6 replies
- 4.4k views
*plz kill this people.*
-
[Delphi] Resource section help
by steve10120- 0 replies
- 2.7k views
Hi, I've got another problem. I'm trying to read the read and parse data in the resource section, after reading some articles I've got a pretty good idea about what needs to be done. But, I'm stuck on one little thing, which none of the articles seem to cover. The problem is with the IMAGE_RESOURCE_DIRECTORY_ENTRY values, the Name value seems correct(checked with Index refs), but the OffsetToData value is wrong, or at least the value in the field is way way above even the filesize. Is there something I need to do to the OffsetToData to get the right offset of the IMAGE_RESOURCE_DATA_ENTRY? var dwOffset: DWORD; bFile: TByteArray; IDH: TImageDosHeader; INH: TImageN…
-
how to get data from edit
by DavidOliveira- 2 replies
- 4.4k views
hey people,i want to get data from edit and show to the user,
-
how to generate a random number
by DavidOliveira- 7 replies
- 3.7k views
i wanna generate random numbers with no repeats, i have this code #include <cstdlib> #include <iostream> using namespace std; int main() { int randomNumber; for(int i = 0; i < 15 ; i++) //print random #s 15 times {randomNumber = (rand() % 25) + 1; cout << randomNumber << endl;getchar( ); } return 0; } but it generate the same sequence 17-18-10-1-20-25-4-9-13-15-6-21-7-3-12 everytime how can i fix it
-
Unpacker
by Busted- 18 replies
- 20.6k views
Hey all, I am searching for an unpacker source code coded in assembly , the reason for this is I want to start coding unpackers you know teach myself. I havn't found any tutorials on coding unpacker's if you happen to come across any let me know , anyways... your help is appreciated! Tipidy
-
Delphi 7
by tagor- 8 replies
- 4.3k views
Sorry my english is bad. How to input music in Borland Delhpi 7??? Please Tell Me???
-
ASM CODING
by Mr. X- 6 replies
- 4.2k views
i am just learnign asm and just trying to code a simple exe which on opening first open a site like www.tuts4you.com Then the main program executes. I know about coding a message box and little bit more but open site on opening site is little interesting one so i want that if anyone know how to do that coding or any source related to that please share with us
-
Hook a Kernel32 api with a driver?
by high6- 5 replies
- 3.5k views
Anyone have an example of hooking a kernel32 api with a driver? Also can more than one driver hook an api at a time? Side question: Can you call a drivers functions directly? Or do you have to do the Read/Write file stream?
-
[help]try to code server simulation from online game
by nickpalingcool- 3 replies
- 3.3k views
Dear all friends in tuts4you, rite now i'm try to build a simulation local server for my favourite online game so i can play it in my computer without internet connection (in additional to practice the game n because verry expensive internet connection in my country).. i try to build it in visual basic 6 because limited knowledge off programming language that i have. at first, i've captured all packets sent n recieved using WPE. the problem is, i send the packet i recieved in wpe with winsock, the server respond the connection but the game not responding the connection. some off my codes are: Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long) Winsock1.Close …
-
[Delphi] Add Section problems
by steve10120- 9 replies
- 4.7k views
Hi. I've got a problem. I'm creating a fake signer, thats adding a new section to the PE, adds the sig, and a push/retn to go back to the OEP. Now, my problem is an odd one, while I've been building it I've been calling the function(s) via Form.Create event, and all is working perfectly, but now everything is ready I started to make the GUI and call via button click events, this is when I started running into problems. Just doesn't make sense to me, if it works via Form.Create should work anywhere else, no? This is the add section function I'm using, I ported it from a VB version, I forget who that was by. Please excuse the mess I've changed all the read/write to copymem …
-
How to disable program visiting internet?
by alaphate- 8 replies
- 3.4k views
Recently, I downloaded a free video to flv software. It will check for update every time it starts up, and there's no option to disable it visiting its website. For example, some freeware will download ads from its website. Without internet connection, it will work fine. The problem is how to disable it from visiting internet without using internet firewall. I tried using winHex to replace its domain to ip address 0.0.0.0, but the application might encrypt its domain. Windows hosts file may solve this problem, but it will not the best solution for sharing clean software to others. I will appreciate your good suggestions. Thank you in advance. I coded a demo program. See P…
-
Dynamic DLL?
by SunBeam- 24 replies
- 7.7k views
Hello, guys and gals. I have a question involving patching system DLLs to allow hooking or loading of user's modules inside an app. For instance, I picked msvcrt.dll from system32 for this task. Loading up the DLL in Olly shows this: So, let's say I want to write some code inside the DLL, then place a JMP or PUSH+RET at DLL's EP to redirect it to first execute my code, then restore code at EP, after which I'll resume execution to the DLL. All easy and done, I pick some empty space from .data section, as below: So, EP: 77C1F2A1 CAVE: 77C5D300 It would work pretty well, except, if I copy DLL to Desktop and open it in Olly, I get this: Under these circumstances …
-
Help on Resorce Files
by serhat- 1 reply
- 2.6k views
Hallo I'm coding with RadASM Program. Not so good . I have now a Problem with RC-file... If I create a dialog Normally the RC-file content should be such!! 100 DIALOGEX 6, 6, 207, 96 STYLE DS_CENTER | WS_MINIMIZEBOX | WS_VISIBLE | WS_CAPTION | WS_SYSMENU FONT 8, "MS Reference Sans Serif" BEGIN CONTROL "IDC_BTN", 101, BUTTON, BS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 125,24,62,15 CONTROL "OK", 102, BUTTON, BS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 125,41,62,15 CONTROL "Cancel", 103, BUTTON, BS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 125,59,62,15 CONTROL "IDC_GRP", 104, BUTTON, BS_GROUPBOX | WS_CHILD | WS_VISIBLE, 117,12,78,69 ENDBut R…
-
[Release] Kal El: Protecting your Applications
by Majii Guy- 0 replies
- 3.1k views
Enjoy, everybody! http://www.sendspace.com/file/wnbgdq Use it as you want, credits or not; it's not terribly messy, some parts were a bit inflexible (e.g.: The GetFunction function should accept one or two more parameters for the hostname and request to be sent, etc). Otherwise, I think it works fairly well.
-
Ruby interpreter issues
by metr0- 3 replies
- 3.2k views
Hey, Porting this post to the public area. Anyway, here it goes: I've been writing a small ruby extension which provides to functions in a class, to log some text to Olly's log window and to put a MessageBox on the screen; nothing complex. I then embedded a ruby interpreter into an Olly plugin, hoping to be able to call the extension function from my script. But calling the script using the embedded ruby interpreter causes either an exception or simply doesn't work (with ruby_exec doing nothing). If anyone has been working with an embedded ruby interpreter before: suggestions are welcome. Regards, metr0