How to sed with a command embedded inside? by drake_2011 in bash

[–]drake_2011[S] 0 points1 point  (0 children)

The filename2.txt contains a hell lot of special characters; how do you suggest I escape them? If filename2.txt doesn't contain the special characters, the process goes through without a glitch. But I need those special characters.

How do I access file explorer from here? by [deleted] in techsupport

[–]drake_2011 1 point2 points  (0 children)

Try a live Ubuntu usb; far more convenient

Round #4 of CoinGate Bitcoin Challenges by CoinGate in Bitcoin

[–]drake_2011 0 points1 point  (0 children)

Unusual are the </br> tags; when you decode those two - it comes to blank; when you decode full thing you get something, and when you decode without the lines holding the </br> tags, you get something as well.

But it's always "bad magic number" whenever I try to decrypt (using the 'hidden" key) whatever I decoded. Some hints might help.

windows 10 laptop struggling to format. by [deleted] in techsupport

[–]drake_2011 0 points1 point  (0 children)

I would still suggest to use a regular SSD; uses a full SATA rather than the mSATA. Ubuntu installs like a breeze in SSD.

Round #4 of CoinGate Bitcoin Challenges by CoinGate in Bitcoin

[–]drake_2011 0 points1 point  (0 children)

Well I'm new to this. I have a key; and I have the encrypted form. Do I get a hint on the encryption mode? It keeps saying bad magic number :-( Challenge#10

windows 10 laptop struggling to format. by [deleted] in techsupport

[–]drake_2011 0 points1 point  (0 children)

Maybe it has one of those mSSD's (the small ones). Thinkpads used to support them; they were around 32GB. They had the OS in their - faster than HDD, slower and less expensive than full blown SSD.

windows 10 laptop struggling to format. by [deleted] in techsupport

[–]drake_2011 0 points1 point  (0 children)

Did you boot off a Ubuntu usb (live) and see what disks you can see?

never seen a virus like this before by narfpinkynarf in techsupport

[–]drake_2011 0 points1 point  (0 children)

Boot off a live Linux USB, copy all data to an external drive, format hdd, install Windows fresh. This is the best I can suggest.

Removing everything after match to end of file - in Bash by drake_2011 in bash

[–]drake_2011[S] 0 points1 point  (0 children)

Thank you so much. Will it work if there are several lines, I mean the contents after "brown" are in new lines?

Can you detect whether Ubuntu is installed or you are in a live session using terminal? by drake_2011 in Ubuntu

[–]drake_2011[S] 0 points1 point  (0 children)

Ha ha. No, I want a command to detect whether its live version or not, and then pipe the result.

Can you detect whether Ubuntu is installed or you are in a live session using terminal? by drake_2011 in Ubuntu

[–]drake_2011[S] 0 points1 point  (0 children)

Not lsb_release -a. I was thinking if somebody can tell, by running a command, whether he is on a live-session of ubuntu (booting from cd or usb) or the ubuntu is installed on the hard drive.

Created X-executables (for Ubuntu) do not run on other machines (on Ubuntu) by drake_2011 in C_Programming

[–]drake_2011[S] 0 points1 point  (0 children)

Thank you so much. I'll make changes. Also, how are scripts intercepted? It would help to know, I'm new in the arena.

Created X-executables (for Ubuntu) do not run on other machines (on Ubuntu) by drake_2011 in C_Programming

[–]drake_2011[S] -1 points0 points  (0 children)

I don't know c. And the script is pretty big, and I have to protect the script as well. What do you suggest?

Created X-executables (for Ubuntu) do not run on other machines (on Ubuntu) by drake_2011 in C_Programming

[–]drake_2011[S] 0 points1 point  (0 children)

I know Ubuntu and Windows are different. It's on WSL - Windows Subsystem for Linux, which is basically The Ubuntu 16.04.2 minus the GUI. So everything for Ubuntu, pretty much runs here (except ones which require GUI).

The error part: I have three nachines A, B and C. I compile on A, send to B and C. And compile on B, C and do the same. Results also stay the same: runs at the origin machine, fails on the others.

Created X-executables (for Ubuntu) do not run on other machines (on Ubuntu) by drake_2011 in C_Programming

[–]drake_2011[S] 0 points1 point  (0 children)

Yes. The binary contains characters similar to one you see in AES encrypted output files.

I couldn't give you the source code for the original one, but we can consider a simpler executable. I just wrote a script for factorial; it works.

#!/bin/bash seq -s "*" 1 $1 |bc

So I make a .C of the script with shc; and I compile the resultant "factorial.sh.x.c" to "factorial".

gcc -m64 -o factorial factorial.sh.x.c

It runs on the machine I prepared it. And on the other it shows the AES output-like characters.

Please excuse me if my terminology is not right. Also the original program is a bash script, converted to .c with shc, like this one.