Programming and Coding
Programming and coding tips, help and solutions...
1,876 topics in this forum
-
How to get RVA from MethodBase?
by CreateAndInject- 9 replies
- 5.7k views
How to get the RVA of a method from MethodBase/MethodInfo?
-
Rebuilding PE sections
by Codelove- 1 reply
- 4.5k views
Hello guys, I'm trying to rebuild the PE sections because I want to reorder them. Has someone done this? What are the requirements for that? Some addresses are linked to certain directories and the padding between them? Any possible examples? I'm asking that because usually .reloc section is the last one and when I add a new section, it comes after it.
-
How to handle proxy addresses?
by LCF-AT- 7 replies
- 6k views
Hi guys, can anyone tell me how to handle a proxy using windows socket & OpenSSL functions?So I get all working on normal way to call any addresses and to get response but now I tried to do the same but with any proxy address but get some issues.So what is the correct way to handle the proxy address before handle the main request address / header? Example: Proxy: 123.123.123.123:8080 Request to google.com inet_addr, proy address filling peer struct socket, AF_INET, SOCK_STREAM, IPPROTO_IP ; or IPPROTO_TCP connect, s, addr peer, sizeof peer Now on internet and in OpenSSL I see it does call send function... CONNECT google.com:443 HTTP/1.0 ...and after …
-
Harmony Injector Help
by Ahmad_k- 2 replies
- 5.3k views
I was trying Harmony it looks very promising as it is very useful for me. My problem is i can't inject the created dll into my assembly to do some test using MegaDumper. I got (Failed to get Base of kernel32) What i did is just intercept the calculate function inside another form application. Is there any simple application for injecting dll ? DLL Code to inject using Harmony; using System; using System.Reflection; using Harmony_test; using System.Windows.Forms; namespace ClassLibrary1 { public class Class1 { static void Main(string[] args) { var harmony = HarmonyInstance.Create("com.test.test"); h…
-
- 19 replies
- 5.8k views
Hi guys, I have a new small question. I would like to start a new other process from my app using CreateProcess function.Now if the new other app runs I would like to send some datas into the other app like to an edit control. Example: App 1 and App 2.Both can run for itself without to need each other.Now I wanna start App 2 from App 1 = both apps running.Here I would like already to send some datas from App 1 into App 2 on startup like PID / Handle infos etc and if App 2 runs it should check whether infos was send on startup or not to know that App 1 is waiting for some infos from App 2.App 2 should now send infos to App 1 so in my case example it should j…
-
C++ code editing
by schoolboy- 0 replies
- 4.5k views
Hi guys, can you edit that code for me? I don't know C ++, unfortunately. I tried to do it myself but I guess my codes are wrong. #include <stdio.h> int main() { FILE* fp; fp = fopen("test.exe", "r"); if (v0 && (fseek(fp, v0 + 16, 0), fread( & v2, 8u, 1u, fp), !strncmp(&v3, "EA06", 4u))) fclose(fp); }
-
- 3 replies
- 4.7k views
the problem is i cannot run and getting this error i dont get it at all, really need some help
-
.ICO to Bitmap...
by LCF-AT- 23 replies
- 9.2k views
Hi guys, I have another small question about icons / ico files.Is it possible to load ico files from resources and change them to bitmap icons?I would like to use the "SetMenuItemBitmaps" function but its not working with normal ico files.Normaly I am mostly just using ico files and I dont wanna convert them to another bitmap icons if I need them in this format.So is it doable to load & convert ico files / handle on fly with any xy function (Icon2BitmapIcon etc) and using them with SetMenuItemBitmaps function? greetz
-
- 0 replies
- 4.4k views
#delphi #python #conditional_access #encryption hi everyone, maybe you can help me, about source code DVB-S2(Digital Video Broadcasting) Encryption. like Power Vu, Tanberg, XCrypt, Irdeto 1,2&3, conax in Delphi or Python, i interesting to learn it 😉 thx b4. i have several source like this all about DVB Encryption [Digital System] https://en.m.wikipedia.org/wiki/Conditional_access Indonesian Sattelite Forum & about Dish Pointing https://www.forumsatelit.com FB Group Keyword search to get Firmware Forsat, Forsat Indonesia, Teknisi Parabola, by vendor, product & chipset name Matrix, Tanaka, Getmecom, …
-
How to read JSON correctly?
by LCF-AT- 24 replies
- 17.4k views
Hi guys, I would like to code a JSON viewer and showing the datas as tree.The problem I have is that I dont know how to read the JSON markers inside correctly without to produce any handling errors to check whether its an object or array etc.So should I read the JSON content spot by spot and checking each one by signs { , [ ] } : etc?Or should I use any API etc?Just looking for a parse solution you know.Maybe you can tell me something about this and what could be a good method I could use later. Thank you
-
- 0 replies
- 3.7k views
Hi everyone. I have tried get clean strings after obfuscation and encryption, but it's not successfully. I was doing similar things that i've done in .Net app (and it works fine). Previous work (in C#): The main app have ecrypted string with this alghorithm: public static string ?1?(string ?1?) { int length = ?1?.Length; char[] array = new char[length]; for (int i = 0; i < array.Length; i++) { char c = ?1?[i]; byte b = (byte)((int)c ^ length - i); byte b2 = (byte)((int)(c >> 8) ^ i); array[i] = (char)((int)b2 << 8 | (int)b); } return string.Intern(new string(array)); } I have changed it to the next help method: static string M…
-
- 24 replies
- 7.2k views
Hi guys, I would like to know whether anyone knows a method to create rounded corners (buttons / Icons) filled with gardient colors inside and transparent outside the corners.At the moment I didnt found any way to make it with a simple method.Only thing I could do is to fill each outside pixel manually with some color xy. Example: Using static color of menu (no gardient style) I create a context menu with drawed icons before each menu entry.Now I draw the background with same color like the menu has and then creating the round corners. ............... invoke GetSysColor,COLOR_MENU ; get system menu color …
-
WM_MEASUREITEM problem
by LCF-AT- 1 follower
- 3 replies
- 4.3k views
Hi guys, I have a new problem found at WM_MEASUREITEM message and using the content of MEASUREITEMSTRUCT.itemData. I created a normal popmenu with ownerdraw flag and at WM_MEASUREITEM & WM_DRAWITEM I am using the content of itemData of both structs (DRAWITEMSTRUCT and MEASUREITEMSTRUCT) to read the menu string and draw it.But anyhow its working diffrent so I dont get the same results.For my popmenu everything works well and the menu strings are comletely inside of itemData to see but when I am also using a second normal main menu with ownerdraw flag then I dont have the whole menu string inside of itemData and I got only ONE letter and the menu does also sho…
-
dnLib Inject MethodDef in TypeDef
by Kaidoz- 1 reply
- 5.6k views
Hey everyone. I try inject Method in TypeDef, but i cant do. Maybe anybody help me? My code: try { ModuleDefMD typeModule = ModuleDefMD.Load(typeof(Encrypt).Module); var mthDef = typeModule.ResolveMethod(MDToken.ToRID(typeof(Encrypt).GetMethods().Where(x => x.Name == "EncryptOrDecrypt").First().MetadataToken)); foreach (var d in module.Types) if (d.HasMethods) { d.Methods.Add(mthDef); } foreach (MethodDef md in module.GlobalType.Methods) { if (md.Name == ".ctor") { …
-
- 22 replies
- 6.6k views
Hi guys, I have a new question.I wanna ask whether its possible to use diffrent colors for a single menu item string entry? Example: ContextMenu Menu ---------------------------- ABC 123 <-- blue & red 111 222 <-- only red AAB SAB <-- only blue 1A2 B4C <-- blue & red ---------------------------- Above you see 4 menu item entry / string.Just some letters and numbers.Now I would like to show the letters in color A (Blue) and the numbers in color B (Red).So is that possible to do that anyhow in a same single menu item?I am also not sure whether its possible with a Ownerdraw to seperate the text color.Does anyone know that or had …
-
How to use WM_MENUDRAG message?
by LCF-AT- 0 replies
- 4k views
Hi guys, I was trying to create a popup menu using CreatePopupMenu function and SetMenuInfo function (MNS_DRAGDROP) to get triggered by WM_MENUDRAG message = Ok.Now on this message I can read wparam content to check out where the drag did started lik from position 1 for example.The problem now is how to check where the drag did end if I release the left mousebutton again?There is a message called WM_MENURBUTTONUP but not for the left button.Now I dont know how to find that out to catch the drag end of this operation you know.Only thing I could do is to catch WM_MENUSELECT after WM_MENUDRAG (setting a marker of drag start item index) and checking at WM_MENUSELECT whic…
-
Want to learn C Programming ?
by malware- 4 replies
- 6.4k views
I want to learn c programming language. Now i understand basic of asm (nasm & masm). Which ebook or tutorial should i follow. *Best resources* The purpose of learning is i want to develop malware (legal monitoring). (Also reverse engineer malware). Thanks
-
Sending Alt+Pause (Alt+Break) to dosbox debugger???
by CodeExplorer- 6 replies
- 5.6k views
Sending Alt+Pause (Alt+Break) to dosbox debugger ??? DosBox uses SDL.dll so I think SendInput function has to be used: https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-sendinput SendInputExamples: https://batchloaf.wordpress.com/2012/04/17/simulating-a-keystroke-in-win32-c-or-c-using-sendinput/ https://stackoverflow.com/questions/6811899/how-would-i-use-keybd-event-to-send-a-for-example https://batchloaf.wordpress.com/2012/10/18/simulating-a-ctrl-v-keystroke-in-win32-c-or-c-using-sendinput/ https://stackoverflow.com/questions/29129987/c-simulating-keystrokes-using-sendinput-method-failure-to-distinguish-right Anyway Visual C++ …
-
C generate all possible combination of strings - for brute force
by CodeExplorer- 5 replies
- 5.1k views
C generate all possible combination of strings - for brute force: char* ValidChars = "0123456789ABCDEF"; int MinimLen = 1; int MaximLen = 2; char SpecialChars[255] = {0}; char GeneratedString[50] = {0}; int Valid_Chars_len = strlen(ValidChars); SpecialChars[0] = ValidChars[0]; // the first char will be first allowed char // SpecialChars[i] will point to next char like this: // SpecialChars['a'] = 'b'; // SpecialChars['b'] = 'c'; // SpecialChars['c'] = 00; // the end of a loop for (int i=0;i<Valid_Chars_len-1;i++) SpecialChars[ValidChars[i]] = ValidChars[i+1]; memset(GeneratedString, ValidChars[0], MinimLen); // we start with 'aaa' string char NextChar; int P…
-
How to build a memory viewer?
by LCF-AT- 14 replies
- 8k views
Hi guys, does anyone know how to create a own memory viewer what does show memory similar as HxD?Offset / Hex etc you know. So normaly I would open any choosen process and read entire memory from 0 - F using VirtualQuery and then I need to show it anyhow.Not sure whether I should use a edit control or anything else.Next question would be how to show it with offset addresses / hex / ASCII and how to update the memory if it does change.Hhmmm.Has someone any ideas / hints how to handle that?Just wanna create a memory viewer + some search function only. Thank you
-
Dnlib cant find nested type!
by CodeExplorer- 2 replies
- 4.2k views
Dnlib cant find nested type! Nested type name: Confuser_Methods_Decryptor.MetadataReader/TableSize public TypeDef FindTypeFullName(string typeFullName) { if (assemblies==null||assemblies.Count<=0) return null; for (int i=0;i<assemblies.Count;i++) { TypeDef foundtype = assemblies.Find(typeFullName, false); // is a slah '/' if (foundtype!=null) return foundtype; } return null; } So I've used AssemblyDef Find method, anyway this doesn't find nested types! What I do wrong? How to fix it?
-
Visual C++ Edit only 500 char maximum length!
by CodeExplorer- 2 replies
- 4.1k views
Visual C++ Edit only 500 char maximum length! Any way to make it hold more datas? Already tried: https://stackoverflow.com/questions/180853/cedit-control-maximum-length-in-characters-it-can-display
-
Looking for websocket Client code examples 1 2
by LCF-AT- 43 replies
- 18.9k views
Hi guys, I am looking for any code examples about websocket calling http/s and switching protocol 101.I would like to know how the code for this kind of connection / communication has to look like using Windows Socket functions or OpenSSL function as I use for normal website readings etc. In some cases when sites using websockets I need to use Fiddler to check out what happend in that connection and what data it was getting but now I wanna write some code for this to do almost same and reading the data from.On internet I just find mostly any scripts for xy languages but no raw code I can do something with that you know.Just need any or some code examples of the …
-
- 0 replies
- 3.6k views
Hello everyone I am developing one autobot for one website. Up till now everything is fine but recently they have implemented the invisible google recaptcha v3. Need professional help to handle the v3. Please message me or reply if you find it challenging or if you can do it.
-
- 0 replies
- 3.7k views
Hello everyone, I am in development process for one autobot but I encounter one issue at one stage. In the site for which I am building auto bot has implemented google recaptchas. The recaptcha is invisible but its response is set to webrequest's request header. I have found out two google recaptcha's webrequests and also find most of the get and post parameters for both requests except one query string parameter and 5 post parameters. If anyone can help me with this please reply here or PM me I will share the fiddler sniffer logs and other details. If you have any questions please feel free to ask me.