oracle arm registration script.

Overview

oracle_arm

oracle arm registration script. 乌龟壳刷ARM脚本

本脚本优点

简单,主机配置好oci,然后下载main.tf即可,不用自己获取各种参数。

运行环境配置

本简单脚本使用python3编写,请自行配置好python3环境和requests库。(高版本的linux默认都自己带了,啥也不用装,可以要装一下git)

比如检查本机的环境:

终端运行 python3 进入python交互环境,如果 import requests没有报错,那就ok了

配置oci

安装oci

bash -c "$(curl –L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)"

一路会车 然后 exec -l $SHELL重启shell

使用 oci -v命令可以查看是否安装成功

配置oci

参考大鸟博客中的 3、复制租户和用户的ocid4、配置cli 配置好oci和公钥

下载main.tf

参考大鸟博客-Oracle甲骨文 ARM VPS自动抢购脚本 – 利用宝塔面板+oci 中的 1、生成main.tf 即可,下载到本地并解压出main.tf文件

脚本需要改的地方

启动 tg推送

修改

USE_TG = False  # 如果启用tg推送 要设置为True
TG_BOT_TOKEN = ''  # 通过 @BotFather 申请获得,示例:1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw
TG_USER_ID = ''  # 用户、群组或频道 ID,示例:129xxx206

USE_TG=True 其他的token和id自行配置自己的

修改硬盘大小

默认是50G, 修改HARDDRIVE_SIZE = 50 为想要的大小,不过可能oci创建的时候不会成功,默认50就行,创建成功后后台可以改

运行脚本

git clone https://github.com/n0thing2speak/oracle_arm

cd oracle_arm

上传 main.tf 文件到 oracle_arm 目录

首先运行一遍测试一下 python3 oracle_arm.py main.tf 稍等一下看返回结果,一般是500就对了,慢不是程序的问题,是oci的返回本身就慢,可能需要30s到2分钟一次

最后运行

nohup python3 oracle_arm.py main.tf > /dev/null 2>&1

会自动停止的,不用管了。Done and enjoy 🎉

再次感谢

大鸟博客 最先公布出刷arm方法,本脚本只是简化了一些步骤。

You might also like...
Better firefox bookmarks script for rofi
Better firefox bookmarks script for rofi

rofi-bookmarks Small python script to open firefox bookmarks with rofi. Features Icons! Only show bookmarks in a specified bookmark folder Show entire

KiCad bus length matching script.

KiBus length matching script This script implements way to monitor multiple nets, combined into a bus that needs to be length matched

Simple python script for AD enumeration
Simple python script for AD enumeration

AutoAD - Simple python script for AD enumeration This tool was created on my spare time to help fellow penetration testers in automating the basic enu

This is a batch script created to WEB-DL.
This is a batch script created to WEB-DL.

widevine-L3-WEB-DL-Script This is a batch script created to WEB-DL. Works well with .mpd files , for m3u8 please use n_m3u8 program (not included in t

With the initiation of the COVID vaccination drive across India for all individuals above the age of 18, I wrote a python script which alerts the user regarding open slots in the vicinity!

cowin_notifier With the initiation of the COVID vaccination drive across India for all individuals above the age of 18, I wrote a python script which

A script to automatically update bot status at GitHub as well as in Telegram channel.

A simple & short repository to show your bot's status in your GitHub README.md file as well as in you channel.

A python script to simplify recompiling, signing and installing reverse engineered android apps.

urszi.py A python script to simplify the Uninstall Recompile Sign Zipalign Install cycle when reverse engineering Android applications. It checks if d

A Python script made for the Python Discord Pixels event.

Python Discord Pixels A Python script made for the Python Discord Pixels event. Usage Create an image.png RGBA image with your pattern. Transparent pi

Um Script De Mensagem anonimas Para linux e Termux Feito em python
Um Script De Mensagem anonimas Para linux e Termux Feito em python

Um Script De Mensagem anonimas Para linux e Termux Feito em python feito em um celular

Owner
test1234455
test1234455
dbt (data build tool) adapter for Oracle Autonomous Database

dbt-oracle version 1.0.0 dbt (data build tool) adapter for the Oracle database. dbt "adapters" are responsible for adapting dbt's functionality to a g

Oracle 22 Nov 15, 2022
Quanser Labs Robotic Arm With Python

Quanser-Labs-Robotic-Arm As a team, we programmed a Robotic-Arm in Python on the

null 1 Jul 11, 2022
Python script which allows for automatic registration in Golfbox

Python script which allows for automatic registration in Golfbox

Guðni Þór Björnsson 8 Dec 4, 2021
Ahmed Hossam 12 Oct 17, 2022
Simple and easy to use python API for the COVID registration booking system of the math department @ unipd (torre archimede)

Simple and easy to use python API for the COVID registration booking system of the math department @ unipd (torre archimede). This API creates an interface with the official browser, with more useful functionalities.

Guglielmo Camporese 4 Dec 24, 2021
Team10 backend - A service which accepts a VRM (Vehicle Registration Mark)

GreenShip - API A service which accepts a VRM (Vehicle Registration Mark) and re

3D Hack 1 Jan 21, 2022
Islam - This is a simple python script.In this script I have written all the suras of Al Quran. As a result, by using this script, you can know the number of any sura at the moment.

Introduction: If you want to know sura number of al quran by just typing the name of sura than you can use this script. Usage in termux: $ pkg install

Fazle Rabbi 1 Jan 2, 2022
Python script to commit to your github for a perfect commit streak. This is purely for education purposes, please don't use this script to do bad stuff.

Daily-Git-Commit Commit to repo every day for the perfect commit streak Requirments pip install -r requirements.txt Setup Download this repository. Cr

JareBear 34 Dec 14, 2022
A script where you execute a script that generates a base project for your gdextension

GDExtension Project Creator this is a script (currently only for linux) where you execute a script that generates a base project for your gdextension,

Unknown 11 Nov 17, 2022
A Python3 script to decode an encoded VBScript file, often seen with a .vbe file extension

vbe-decoder.py Decode one or multiple encoded VBScript files, often seen with a .vbe file extension. Usage usage: vbe-decoder.py [-h] [-o output] file

John Hammond 147 Nov 15, 2022