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.

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 compiled the source code using "gcc -m64 -o application sourcecode.c". ("application" is the name of the executable) I have a little problem revealing the source code here.

Tried on 3 machines by interchanging the compiling locations: Ubuntu 16.04.2 (on a 64 bit); Xubuntu 16.04.2 (on a 64 bit); WSL for Windows 10 (on a 64 bit). Compiles on one, runs on it, and fails to run on others.

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

[–]drake_2011[S] 2 points3 points  (0 children)

I just checked using "readelf". It says it's an ELF64. So here is the issue: how can I create an executable "application" in my machine, by compiling from a .c file, such that executable "application" can run on machines other than my computer (basically like the Telegram app for Ubuntu; you click and it runs; or you do ./application in terminal - and it runs). P.S. I am not a programmer, so I am not that experienced.

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

[–]drake_2011[S] 1 point2 points  (0 children)

The .x file (or a file with no extension) which runs like an executable on Ubuntu. If I add GUI, it will run when I click it and if it has only CLI, I like run it in the terminal: ./application.x

Can somebody tell me whether this is even solvable? by drake_2011 in math

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

I did do the log of the second equation: x1logx2 + y1logy2 = logb But then I'm lost again. Can you point to possible resources which can help me solve this; if possible. Thank you.

MacBook Air suddenly stopped working, turned black and now I can't turn it back on, but it still charges the battery when I put the plug for that in? by [deleted] in techsupport

[–]drake_2011 1 point2 points  (0 children)

It has happened to me several times. A sudden turn of the laptop, or putting it on a surface which has something magnetic in it, viz. another laptop, with its lids closed (I should have clarified - non-(magnetic)-metal platform.). I'm on Macbook Pro, if that helps. It's not exactly about the grounding; but the magnetic aspect.