IDA. how can i install decompiler? - decompiling

I downloaded from official site(hex-rays) IDA, installed, everything works. I found needed for me function, pressed F5(hotkey for decompile so i would see C pseudocode), and got pop-up message:
ida sorry you don't have any decompilers on windows
Can't understand what's wrong and no info about such a message in google i found...
Here is the screen of message:
enter image description here

D in IDA stands for disassembler. The free version of IDA does not contain the HexRays decompiler plugin.

Ah, this "error" is just not professional pop-up from developers. Decompiler already installed, but it available only when you'll pay them.

Related

Compiling pascal program in Visual Studio Code for Linux

Recently, I switched my OS to Ubuntu. I just started with collage and I have to learn pascal for my finals. But a problem occurred.
I installed Visual Studio Code and Pascal extension for it, but I am unable to run even a simple Hello World code. I wrote code, it saved automatically as .pas, but when I enter debug & run option in VSC it displays a message that says 'Open a file which can be debugged or run.', followed by 'debug' and 'run' buttons that I am unable to click and another message that says 'To further configure Debug and Run create a launch.json file.'
I am not even sure am I supposed to post questions such as this one on stackoverflow, but I sincerelly hope that someone could give me a hint on what to do. Solve this within Visual Studio Code or switch to another IDE (and which one would you recommend for Linux user) and pretend that nothing happened?
Thanks in advance.
I know this isn't an answer to "how to debug with pascal with vscode" but, perhaps you would find it easier to just use FPC / Lazarus (IDE) to do your work. While it doesn't have a dark theme, contrary to popular belief, that's not necessary to program.
The IDE is feature packed and allows for full code completion, debugging, etc... (everything you really need to do the work for school).
Additionally, you can use this open source tool to install everything you need for your platform in just a few button clicks (also allows for installing common library packages)
https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases
download release for your OS
under "FPC Version" & "Lazarus Version" select trunkgit (or stable for an older version)
click the "Install/Update FPC + Lazarus" button
Have you Installed Pascal extension which is available for code to smoothly run pascal code.
If you haven't then try installing this extension using,
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
ext install alefragnani.pascal
You can always check,
https://marketplace.visualstudio.com/items?itemName=alefragnani.pascal
to install and configure pascal in vscode.
I will direct you to the debugging page from the Visual Studio Code documentation that details how to use the debugger and configure a launch.json file. VSCode is a generic IDE so you need to give it some information about your project before it knows how to run the debugger. This is what launch.json is for.
If I could make a suggestion. When you're learning how to program, it's best to start with the basics. Write a small program in a text editor (VSCode is fine, or Vim, or Nano, or Notepad, or whatever). Save the file. Compile and run the program on the command line.
Once you put an IDE in the mix, you have to learn how to use that as well. If you're stuck on both parts, it can be hard to make progress. That said, it's good to learn how to use the IDE, and you should spend some time reading the documentation and working through some of the examples. It takes some time, but it will pay you back a thousand times when you can work more quickly.

Is there syntax highlighting for assembly in Sublime Text 2?

I'm unable to highlight my assembly.
No, but since Sublime Text 2 can read Textmate language definition files (.tmLanguage files), you could easily add support to Assembly by copying something like https://github.com/foxostro/x86-assembly-textmate-bundle to your "Packages" directory (C:\Users\hugo\AppData\Roaming\Sublime Text 2\Packages on my Win7).
There is now a much better answer to this:
In Sublime Text, just go to Preferences > Package Control > install packages. Once there search for "mips-syntax" and hit enter on the result.
Once it installs you should be able to select MIPS as the syntax highlighting for whatever file you're editing.
Edit: Of course, this does assume that your Sublime has Package Control. You can get package control to do this and more at: http://wbond.net/sublime_packages/package_control
I've found another one Assembly x86 syntax definition.
It seems that this guy had done a huge amount of work, and keeps the syntax updated. At least at the time of writing the last change was 9 days ago.
He has also this post on Sublime forum.
GNU Assembler (GAS) x86(-64) syntax:
I know there's a chosen answer, but for anyone else who comes here in the future, you have to specify which syntax/machine you want. Assembly comes in a lot of different flavors for a lot of different machines. Other answers have given Intel x86, NASM, SPARC, and MIPS. When I visited this page back in 2014, I was looking for a good GAS/AT&T syntax def for x86, which I never found.
So naturally, I made my own. It's really an x64 highlighter, but of course that includes x86 too.
It's also on Package Control. To find it, type "gasx" into the search field.
I also ported it over to Atom (available from Atom packages), Vim, and Gedit.
Like others, I noticed a distinct lack of SPARC syntax highlighting in Sublime Text 2, so I rolled my own. It's fully functional, and has its very own entry in Will Bond's Package Control. With Package Control installed, you can install my package in Sublime via Ctrl+Shift+P -> Package Control: Install Package -> SPARC Assembly Syntax.
Complete install instructions and usage tips are available on the Github project page.
Old question, but there is this one: https://packagecontrol.io/packages/NASM%20x86%20Assembly
I know the question was for Sublime 2, but if you want a nice highlighter
I'm using the MasmAssembly on Sublime 3 and found that its quite good. It highlights even ZMMs registers and the lastests SSE instructions.
You can install it using the package control plugin, nevetheless here is the repository:
https://packagecontrol.io/packages/MasmAssembly
AVR-ASM is also available!
See answer by Bitwise but search for AVR-ASM.
I had to install Package Control first:
Win/Linux: <Ctrl + Shift + P>
Mac: <Cmd + Shift + P>
...then type "Install Package Control" and press <Enter>

Find installed MSVC with NSIS Installer?

I would like to find out if any kind of a Microsoft Visual package is installed during my Nsis installation (I need the Compiler from those Microsoft packages (C,C++ Compiler))
One possibility could be to have a look in the registry...but it would always be a different entry.
So far I´ve got no good solution to detect a MSVC maybe anyone else does?
Your best bet is probably to look in the registry. You could take a look at some open source build tools and see how they do it. (SCons etc.)
The other alternative would be to search all drives for cl.exe with FindFirst and friends but that could be slow and you would probably have to check the version information to filter out false positives...

eclipse xml error

i am programming in eclipse for the first time and when i create a blackberry project i am getting this error in BlackBerry_App_Descriptor.xml as
Description Resource Path Location Type
InvalidRegex: Pattern value '([a-zA-Z_]{1,63}[\s-a-zA-Z_0-9.]{0,63}[;]?)*' is not a valid regular expression. The reported error was: ''-' is an invalid character range. Write '-'.' at column '19'. BlackBerry_App_Descriptor.xml /sample Unknown XML Problem
please help me out
thanks in advance.
I have had the same problem earlier with my first project on BlackBerry using the Eclipse provided on the site.
Though I took a lot of time to get a workaround for this, the solution is surprisingly simple.
Uninstall the JDK 7.x from your Windows system, adjust your path variables to point to another JDK version, preferably 6. There could be other dependencies in your Eclipse environment which need to be set independently to point to the new JDK (try Windows -> Preferences -> Java -> Installed JREs in your Eclipse and voila!)
see? let us know if you still face the problem..
I'm having the same problem as you are. There is a post regarding this issue at http://supportforums.blackberry.com/t5/Java-Development/InvalidRegex-Pattern-value-a-zA-Z-1-63-a-zA-Z-0-9-0-63-is-not-a/td-p/944343
I haven't been able to solve the problem yet, and I am clueless as to what may be causing it. The answers at the blackberry support forums didn't work for me at all. But do try them out. Best of luck.
The deprecated version of the blackberry development IDE for eclipse (version 1.1 of the pluggin) works fine, but is not available for download anymore.

ZX Spin emulator, built-in assembly errors

I'm having problems understanding how to get an assembly file to run
inside the ZX Spin emulator using the built-in assembler. I'm able to assemble my program but it seems to crash each time I attempt to run the assembled object code.
I cannot find any documentation on how this is meant to be set to run.
The message I get with version is v0.7:
Access violation at address 0060470C in module 'ZXSpin.exe'. Write of address 05603622"
Any help on getting this working with the most simple of assembly files would be great.
I had that error too with both 0.7 and 0.66 version, but I've found a solution.
Get to Tools/Options/System and change "When no longer active application" to "Keep running with sound"
I'm using version 0.666. Try to set a conditional breakpoint.
I found that version 0.7 had a bug in the assembler as that part was no longer being maintained and subsequently had been broken between releases.
I tried the previous version and it worked correctly (so I made a wonderful dot). Thanks to anyone who helped out with this. Can't recall the forum where I was provided with that info, but thanks :)

Resources