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.
19
questions
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 ...
5
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 ...
0
votes
1
answer
160
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: ...
0
votes
1
answer
91
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 ...
1
vote
1
answer
159
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 ...
0
votes
1
answer
788
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
-...
0
votes
1
answer
304
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....
1
vote
1
answer
575
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 ...
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 ...
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....
1
vote
0
answers
243
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 ...
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 >&...
5
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:
-...
1
vote
1
answer
457
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 ...
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(...