executable

How can you read/write asm registers from an .exe using C++?

落花浮王杯 提交于 2019-12-13 04:39:12
问题 I want to modify the value of a register that is in a certain program. The only problem is, I don't know how to access it. If there is a way, how do I read/write into it? (preferred language C++) 回答1: If you want to modify a particular register one time while the program is running you can do so using a debugger, such as OllyDbg. If you want to modify the code while the program isn't running, such that in the future when you run the program it behaves differently, you can view the Assembly

Running 7zip command line silently via Python

半城伤御伤魂 提交于 2019-12-13 04:34:09
问题 I've seen plenty of questions regarding the python execution of a .exe file using popen and mentions of using PIPE to stop output of the process. Apologies if my terminology is incorrect, i'm very new to python. My main aim of this question to to add stdout=PIPE or something similar to prevent any output showing, such as "Extracting filename..." This is very bad as some rars are large. I am trying to run 7zip silently/hidden/quite. So that the entire process can run in the background and not

Django project to .exe with Pyinstaller - Missing modules, ModuleNotFoundError

天大地大妈咪最大 提交于 2019-12-13 02:50:00
问题 I am working to convert my Django project to a .exe file using Pyinstaller. I want to be able to just click an icon and open the project in a browser. Here is my folder structure: proj __pycache__ proj __pycache__ __init__.py manage.py Dashboard __pycache__ __init__.py urls.py proj __pycache__ __init__.py settings.py urls.py wsgi.py static_cdn And here is my manage.py file: # -*- coding: utf-8 -*- import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE",

CodeLite No executable specified, use 'target exec' error

蹲街弑〆低调 提交于 2019-12-13 00:25:41
问题 Today is my first day of using CodeLite (http://codelite.org/) and I keep getting random errors. I've managed to fix most of them, but didn't found how to fix this one: No executable specified, use 'target exec' It is shown when I press the Start or Continue debugger button. The only solution I found was this one: http://www.gamedev.net/topic/605071-codelite-cpp-variadic-templates-error/ but it didn't fix the problem. I want to use the program to run and make C++ codes, do I need to change

Strip Executable (Windows)

眉间皱痕 提交于 2019-12-12 23:18:47
问题 I've heard that strip is a program that makes an executable smaller. I've tried to turn it on from my compiler (for Python) but when it comes to run strip I just see "strip is not recognized as a command or as a program" error from the Command Prompt. So where do I get the executable of strip for Windows? 回答1: strip is part of GNU's binutils. 回答2: Unix/Linux style strip will remove symbol info that is used for debugging purposes. AFAIK under Windows a strip utility is specific to the compiler

Distribute Python code as executable for Mac/Windows/Linux

允我心安 提交于 2019-12-12 22:40:43
问题 I am working on an interesting tool which I feel has good value and may eventually want to open source it. However, till I decide, I want to keep it "closed". The problem is I want to code it in Python and this inherently means shipping the code. I know I can convert Python code into a binary but I want something which works across Windows / Linux / Mac Can someone please point me to how this can be done? 回答1: Well, Python is a scripting language, so it's not quite possible to create real

Using PATH AMPL solver with Pyomo on Intel Mac OS X

柔情痞子 提交于 2019-12-12 21:15:30
问题 I'm trying to use the PATH solver (http://pages.cs.wisc.edu/~ferris/path.html) together with Pyomo on Mac OS X (10.11, Intel). I'm using the most recent Anaconda install with Python 3.5. Pyomo can make use of AMPL libraries. From http://prod.sandia.gov/techlib/access-control.cgi/2015/155584.pdf I'm trying to run the following example: `# file munson1.py from pyomo.environ import * from pyomo.mpec import * model = ConcreteModel() model.x1 = Var() model.x2 = Var() model.x3 = Var() model.f1 =

Creating a Mac OSX bundle from a Java program

て烟熏妆下的殇ゞ 提交于 2019-12-12 20:05:47
问题 Let's assume that I wrote a simple Java program, that is the file ending with .java that I can compile with javac, and then run with java... How do I create a Mac OSX executable (.app) bundle, so that I can send it to others who will then be able to launch it on their Macs with a double click? 回答1: What you should check is javapackager, especially the parameter native and its value image javapackager -deploy -native image -appclass fqn.of.MyClass -srcfiles /path/to/my.jar -native type

Run two executables with system()

痞子三分冷 提交于 2019-12-12 18:57:19
问题 I'm trying to write a small program that just runs two executables. Currently it only runs the first one for some reason: #include <windows.h> #include <iostream> using namespace std; main(){ cout << "Running Borderless Window..." << endl; system("BorderlessWindowed.exe"); cout << "Running Diablo II MultiRes..." << endl; system("D2MultiResGame.exe.lnk"); } It's just a small program to run Diablo II + a BorderlessWindow program. 回答1: this will do the task #include <windows.h> #include

Why can't we extract source code from executable file?

时光毁灭记忆、已成空白 提交于 2019-12-12 18:40:16
问题 I need some information on executable files, thanks in advance, this is a new topic in our grade. I've seen a lot of questions asking how to extract, but my question is why can't we get the original source code? Yeah using decompilers we can extract but those codes are not the exact code used to develop the program. I mean, if a computer is running a software it obviously has to have some code to refer from, then why can't we get that code? Also, do exe files have the same code which is