just like most packers(PE encryptor) on windows,for protecting the secret they may encrypt the whole process memory when it’s running. wonder if jvm has a memory encryption option we can choose? just thinking if someone dumped the whole JVM memory and he could get some secret info on text, even vi or gr…
Tag: linux
Kernel Panic with Buildroot Linux
I (try to) make a complete minimal Kodi Linux system with buildroot from scratch, everything compiles fine and i also got it to boot but after some lines of console output and graphics reset it gives me a kernel panic error: I have no clue why… My buildroot config file: https://pastebin.com/7PC4zLEa Ima…
How to pass an extra option in ls using execv()?
I’m trying to execute this simple command ls -1 *.c using the execv() function. The output I’m getting is Answer There’s a big problem in your code: execv can’t tell how big the array you’re passing it is. You absolutely need a terminating NULL element to mark the end: OK, now th…
How to make gdb for a target and use it there
I am trying to compile gdb-8.2 from source. Build machine: x86-64 Host AND target: arm-linux-gnueabi I ran: Then I ran: So I got a usr folder inside gdb_installation folder. I copied the usr/local/bin/gdb to my target and ran Output: But it does not show anything. It exits without any message. What am I missi…
pyinstaller ImportError error – how to solve it?
I have installed pyinstaller in my Linux in order to create an executable to my Python script, which runs normaly with the command: However when I execute bellow command: I get the following error: What is wrong? I tried to install dis3: But I still get the same error. I uninstalled it … Installed again…
Fetching specific value from a variable in Bash
I have a variable which runs a specific bash command: The output of echo $Model can be as below: I want to grab only the value Model RZ230 I am using the following but it is not working: Using above command I am getting output as: `My output should be Answer Use Bash parameter expansion : Regards!
showing status with large file transfers via netcat/nc
I am using nc/netcat to transfer a large tar stream. Is there a way for either side to show some kind of status? Like how much has been transferred and/or the speed while it is transferring? On the receiving end: On the sending end: Answer At its simplest, you could use pv – the pipe viewer: If you look…
Bash Scripting – REGEX to dump a file list
I have 4 files extensions as result of previous works, stored in the $SEARCH array, as follows : I want to issue one file list for each of the 4 above extension patterns, as follows, except for the case with 2 dots and 2 extensions (marked “NO”) : Obviously I spent hours on regex101 w/o success. I…
Get a particular string from text file
I need to get a particular string from a text file. the content of my file is below : The command that i am trying is : Using this command, I am able to get that particular line in which my string is present. Here is the result of the awk command : What I want to grep is only
Test whether at least one directory with a name prefix exists in bash
I have a script with a user-entered name, and want to determine whether any directories exist starting with that name. This code looks like: It works fine if there is only one such directory: …but it doesn’t work if there are multiple matches: How can I make this work with any number of directorie…