What is your favorite disassembler tool in Mac OS X? [closed] - macos

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am using the otool, nm and Fraise text editor to disassemble the Mach-o binaries. My workflow at this point is pretty straightforward:
1. List the existed symbols.
nm -g
2. Get the disasm code.
otool -vt
3. Copy and paste this output to a text file.
4. Read and comment the code in the text editor :)
I am looking for the tools that simplify the working with disasm code on Mac OS X.

You might want to try
Hopper Disassembler,
osxdbg,
Machoview,
otx (otool GUI)
and Affinic Debugger GUI.

I als know of http://www.hopperapp.com/, but never used it.
(cannot be compared to Ida(Pro))

Related

Is there a built-in Windows command-line editor? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
When I connect to a 64-Bit Windows server via PowerShell e.g., is there some built-in command-line tool that allows text editing (assuming that I cannot/do not want to install software)?
For Linux, e.g., I can expect that there is vi installed on virtually every system. For old DOS/Windows version, there has been edit.exe which seems not to be there anymore.
(not enough reputation to comment, so will do it here)
As far as I know, there's not a built-in editor; however, a workaround would be to use:
type CON>myfile.txt
As explained here, this will forward the input in the console to your file. Not nice, not powerfull, but it may help sometimes.
Please note this WON'T work through Powershell, but you may use it with winrs -r:server cmd or with psexec.

Open source text editor for Mac [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Does anybody know about any living open source text programming (mainly html/css) editor for Mac? There does not seem to be one.
Kod - dead
Fraise - dead
Smultron - not open source anymore
Coda - not open source
I would like to extend it with CSS live preview tab, but in order to do that it has to be open source, and I would prefer working on a project that has some perspective. Everything seems to be on the Mac App Store now... :\
TextMate 2 is now open-sourced on github.
https://github.com/textmate/textmate#readme
Honestly, learn Vim. It'll take you a while at first, but you won't regret it.

Print entire Project source code [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I need to print the source code of a VS2010 project (all files, around 400). Is there any way to automate this task?
Any option is good: whether it is directly to a "physical" printer or to a virtual printer (PDF printer).
It's not built into VS. But you can find a macro that does the job at http://msdn.microsoft.com/en-us/library/ms973240.aspx.
Also, a modified version is loacted at https://stackoverflow.com/a/683835/337294
A Project file is an XML file. You can extract the filenames and then pipe them to any tool you like. If you have any unix-like tools on your Windows system you can do the following to print all .cpp files:
grep -o "\".*\.cpp\"" MyProject.vcxproj | xargs cat

How do I take a screengrab of a single window using Cocoa or Carbon on OS X? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I need to be able to identify a single window on the user's screen and take a screen capture of it. The screen data is to be stored in memory and not written to disk.
This is already supported through the commandline tool /usr/sbin/screencapture or through the Grab utility (though their functionality is not extensive enough to justify me launching them as a subprocess).
References / Hints
nm /usr/sbin/screencapture returns private Cocoa interfaces including _CGSGetSharedWindow that appear to do this.
Third party application Snapzpro does this (but does not provide source code)
Mac OS X 10.5 introduced the Quartz Window Services API to do just this.
The first thing that came to mind was GrabFS from MacFuse. The source is here.
Command+Shift+4 to activate the screenshot selection, then tap the space bar to select the whole window.

Where is the code for "tee" in Mac OS? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Where is the code for the terminal command 'tee' located in Mac OS?
[Added] Is it possible to read the exact code, that my mac is using (not the online codes)?
By "code", I guess you mean source code, right? See there
EDIT: I see the question has been made more precise.
See exactly in the "plain" BSD code here as a Apple Developer login (free) is required to browse their code.
It's BSD, not Linux, code.
http://www.pell.portland.or.us/~orc/Code/bsd/bsd-current/tee/tee.c
http://www.ss64.com/osx/
Do you mean, where is the executable? If that's what you're asking, it's at /usr/bin/tee. You can locate any command in your path by using the which utility. It will print out the full path to the command. For example:
$ which tee
/usr/bin/tee
$
If you're asking about the actual source code, a number of answers are already here that provide you with links to Apple's source code. The utilities themselves are split amongst a number of packages and there's no real index, so you'll have to browse the names and check packages that sound like they might contain the source for any given utility.
Here is the source code of Apple's unix:
http://developer.apple.com/Darwin/
If it is up-to-date this is the exact code that your mac uses.

Resources