reverse-engineering

How does one change an instruction with a hex editor?

最后都变了- 提交于 2019-12-10 14:57:52
问题 I am messing around with some reverse engineering, but I don't know how to change a jnz to jz with a hex editor. I understand it will vary between systems but I'm not sure where to look to find this information. I'm working on Mac OS X 64 bit and I disassembled code with IDA Pro. 回答1: If you've found a jz , it will either look like 74 XX or 0F 84 XX XX XX XX . If it's a 74 , change it to 75 . If it's the one with 84 , change it to 85 . This information can be found, among other places, in

FreeLibraryAndExitThread crashes program when unloading injected DLL

旧巷老猫 提交于 2019-12-10 10:48:56
问题 I am writing a DLL that gets injected into a game in order to play around with some reverse engineering. For a while I was able to successfully inject, eject and reinject as I made changes to the program. I'm using FreeLibraryAndExitThread to unload. After adding XInput to the program so I could catch user input, the game crashes with an access violation when I call FreeLibraryAndExitThread . Going from this post, I'm guessing that using XInput is leaving something 'live' in the program when

Laravel generate models, views and controllers from database or migration script

大憨熊 提交于 2019-12-10 00:03:05
问题 I am new to Laravel 4. I wanted to know if it is possible to generate Models , Views and Controllers from existing database? I Googled and found https://github.com/JeffreyWay/Laravel-4-Generators But it allow to generate migration script, model, views and controllers by providing resource name where as i want to reverse engineering of the same in which by command line i want to create models, views and controllers from the existing database. 回答1: php artisan generate:model dbtablename it will

I cannot add views when reverse engineering my database in Visio

烂漫一生 提交于 2019-12-09 23:07:33
问题 I am trying to reverse engineer parts of a 2012 SQL Server into Microsoft Visio 2010. The views option is greyed out. The views are integral to the processes I am trying to document, and the diagram will be useless without them. Does anyone have an easy work-around other than manually inputting the views? 回答1: You are probably using "wrong" data provider to reverse engineer the database, and that is the reason why views are disabled. There are some issues with Visio not being updated to

Preventing reverse engineering with binary code and secret key

喜你入骨 提交于 2019-12-09 20:57:53
问题 I am working on a software program that has to be deployed on private cloud server of a client, who has root access. I can communicate with the software through a secure port. I want to prevent client from reverse engineering my program, or at least make it "hard enough". Below is my approach: Write code in Go and compile the software into binary code (may be with obfuscation) Make sure that program can only be initiated with secret key that can be sent through the secure port. The secret key

Protect Android App from reverse engineering

半世苍凉 提交于 2019-12-09 10:28:58
问题 I want to secure my app 100% and don't want hackers to enter inside. These are the solutions which I found from Stack Overflow. Integrating Proguard in the app. Keeping most important part of the code in C/C++. Using NDK to write the code natively into .So file. Encrypting the api keys using MD5. So is there any other way to protect my Android app fully from the hackers or which is best solution among the above mentioned. These are the references which I found How to avoid reverse engineering

iOS 8 - How to determine the foreground app as well as get list of running apps

时光总嘲笑我的痴心妄想 提交于 2019-12-09 08:49:08
问题 On iOS 7.0 and below, SBFrontmostApplicationDisplayIdentifier from the Springboard framework specified the app running in the foreground, but that capability has been blocked (considered as a vulnerability, see the Common Vulnerabilities and Exposures page dedicated to it here) in iOS 8. Does anyone have an iOS 8 alternative for this? 回答1: It is not possible to do it on iOS 8 since a vulnerability was discovered. More info here: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-4361 来源:

Replicate Netflix login and generate cookie

落花浮王杯 提交于 2019-12-09 07:13:14
问题 Since there is no official public Netflix API anymore, I'm trying to reverse engineer some things on my own. But I'm kind of stuck at the login. What I'm doing: GET request on https://www.netflix.com/Login Follow the redirects to end up on something like /Login?locale=en-DE Extract the authURL value (required for the login POST later on) GET request on https://assets.nflxext.com/us/ffe/siteui/logging/clientNotifications.min.20150626.js [Failed] Generate and set the "cL" cookie from the

Anti-debug using prefetch queue doesn't work with my cpu

依然范特西╮ 提交于 2019-12-09 07:10:24
问题 Why does this code enable me to detect a debugger? The link above told me the way to use prefetch queue to anti-debug, then I tried to use the code below to test, but I failed. Can anyone help me point out if my code is wrong. My cpu is Intel(R) Core(TM) i7-2630QM 2.00GHz. Thanks a lot ML : D:\Programs\masm32\Bin\ML.EXE /c /coff /Cp /nologo /I"D:\Programs\masm32\Include" "AntiDebug.asm" Link : D:\Programs\masm32\Bin\LINK.EXE /SECTION:.text,RWE /SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0 /LIBPATH

OpenCV and Unsharp Masking Like Adobe Photoshop

元气小坏坏 提交于 2019-12-09 05:00:55
问题 I am trying to implement unsharp masking like it's done in Adobe Photoshop. I gathered a lot of information on the interent but I'm not sure if I'm missing something. Here's the code: void unsharpMask( cv::Mat* img, double amount, double radius, double threshold ) { // create blurred img cv::Mat img32F, imgBlur32F, imgHighContrast32F, imgDiff32F, unsharpMas32F, colDelta32F, compRes, compRes32F, prod; double r = 1.5; img->convertTo( img32F, CV_32F ); cv::GaussianBlur( img32F, imgBlur32F, cv: