Questions tagged [command-line]

Command line is the basic interface between a human and an operating system. It consists of a prompt, and lets the human type text commands.

Filter by
Sorted by
Tagged with
5 votes
1 answer
5k views

How to run automatically executable from CLI using lldb?

In gdb, I can run automatically the binary as (as per this post): gdb -ex run /bin/true What's the equivalent parameter for lldb? This works: echo run | lldb /bin/true but I'd like to back to ...
kenorb's user avatar
  • 495
4 votes
2 answers
3k views

How to find obfuscated hidden command line parameters?

The Amazon KindleGen command line app (Windows, macOS, Linux download links) has several undocumented command line parameters that I'm curious about. One of these hidden command line parameters is: -...
Nemo XXX's user avatar
3 votes
1 answer
2k views

What are the substantive differences between radare2 and rizin?

Rizin was forked from Radare2 several years ago, mainly due to human factors. At the time, there weren't any important differences in features between the two. I understand that Rizin has rewritten ...
SRobertJames's user avatar
3 votes
2 answers
3k views

When trying to change command line, received an error: "Could not set command line!"

I download CurrPort program and run it on xdbg64. I pressed File -> Changed Command line and changed the command line to: "C:\Users\myusername\Downloads\cport\cports.exe" "/close * * 127.0.0....
E235's user avatar
  • 583
3 votes
1 answer
1k views

Command for Command line plugin does not work

I need to analyse a sample which creates a child process. I want to analyze the child process, too, but I have the following problem. Therefore, I take the command line plugin for my olldbg v1.10 and ...
user3097712's user avatar
  • 1,541
2 votes
1 answer
2k views

Segments start address is different in IDApython when invoked thrg cmd prompt

I am able to get Segments start address, end address and all functions of a DLL through follwoing ida python script: # Get the segment's starting address ea = ScreenEA() print(ea) print(...
user3264821's user avatar
1 vote
1 answer
3k views

How do I read this decompiled code?

I want to know what command line arguments are accepted by an application. I have decompiled it using Ghidra and found a function called ParseCommandLine, but I don't understand what it is doing. I ...
Trevin Avery's user avatar
1 vote
1 answer
156 views

Identify strings shared between multiple files from the Linux command line

Given a set of arbitrary files, what's the best way to identify the text strings shared between them (either in all files or a subset of them) from the Linux command line? This would be useful for ...
recvfrom's user avatar
  • 195
1 vote
1 answer
549 views

How to specify path of output database in IDA Pro?

I'm trying to generate IDB files from the command-line using the -o flag of IDA, something like this: ida.exe -B input.dll -oC:\Results\input.idb. However, it seems that the value of the -o arguments ...
Lisbeth's user avatar
  • 73
1 vote
1 answer
4k views

Running script on the command line with IDA Pro 7.0

I'm trying to run a script with IDAPython on Windows: PS: C:\Users\user\Downloads> ida.exe -S"tmp.py" -t >> PS: C:\Users\user\Downloads> and I had to press Ctrl+C to get out of the >&...
anonymous's user avatar
1 vote
2 answers
120 views

How do cmd arguments are loaded to process memory before they're passed to main?

My question is how cmd arguments are passed from the shell to the process memory ? How the loader loads them and if there are passed with some sort of syscall ? ill be happy if some one can explain in ...
Igal Gokhman's user avatar
1 vote
1 answer
453 views

Can a RTMPS stream be authenticated by a cookie?

After performing an mitm attack I discovered that the Nest mobile application appears to use a cookie as authentication to access data. It receives a response that gives an RTMPS address, but it seems ...
AppleTechy's user avatar
1 vote
0 answers
240 views

Is there any way to execute Hopper scripts from command line?

What should I do if I have a batch of binaries to decompile with Hopper? I know how to run a Hopper script in the UI interface, is there any way to run Hopper scripts from command line? Or any other ...
M0nkbai's user avatar
  • 11
0 votes
1 answer
81 views

idat.exe -S -A close without error

I have developed a idapython script and I run it using the following command: idat.exe -S"myscript.py" -L"logs.txt" -A .\mylib.so In myscript.py I appended the exit(0) in order to ...
Dario B.'s user avatar
0 votes
1 answer
738 views

Recreating ping command injection using curl instead using web page on Huawei router

I have an ARM based Huawei router and Im trying to do injection vulnerability on page under diagnostics where's "ping" feature is. So first I tried this command -c 1 127.0.0.1 and it worked -...
Vido's user avatar
  • 515
0 votes
1 answer
11k views

How to decrypt data in binary file by XOR operator using a given key at specific offset? [closed]

I've a binary data files which are encrypted by a simple XOR cipher using a given key at offset +0x88 (which is 0x80 long), then the data (+0x108) is compressed by lzo1x. What would be the most ...
kenorb's user avatar
  • 495
0 votes
0 answers
40 views

How can I find the part of cmd.exe that processes windows batch commands before they're executed?

I'm able to find the ReadConsoleInputW commands for pause and reading input for commands but I'm unable to find the actual processing of the commands. I'm using x64dbg but I'm fairly new to Reverse ...
user19244091's user avatar
0 votes
1 answer
146 views

idat.exe -S, path with spaces

I'm trying to execute the command: idat.exe -S"home\mypath to script\myscript.py args" -L"logs" -A mybin.so But I get an error. Among the logs is present the error: home\mypath: ...
Dario B.'s user avatar
0 votes
1 answer
296 views

Is command injection using a valid file path possible?

My question is theoretical, and not bound to python - but for the sake of simplicity, I'll use Python code snippet. Let's assume I have the following code: import os import sys if os.path.exist(sys....
macro_controller's user avatar