
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
conoha-storage
Advanced tools
ConoHaオブジェクトストレージのためのnode.js製クライアントとコマンド
npm install -g conoha-storage
node.jsはv15.0.0以上に対応しています。
ConoHaオブジェクトストレージの情報を.envファイルに記載します。 ConoHa API情報にログインして以下の例のように設定情報を記載します。
CONOHA_ENDPOINT=https://object-storage....
CONOHA_TENANTID=0e844...
CONOHA_USERNAME=gncu5...
CONOHA_PASSWORD=T3Zfo...
auth
コマンドを実行して次のように出力されれば認証成功です。
$ conoha-storage auth
token : 9b07a...
expires: 2021-...
auth
コマンド認証を行い、トークンを発行します。
conoha-storage auth
list
コマンドコンテナの一覧を取得します。
conoha-storage list
コンテナを指定することでそのコンテナ内のオブジェクト一覧を取得します。
conoha-storage list container
mkdir
コマンドコンテナを追加します。
conoha-storage mkdir container
--archive
オプションを使うことでバージョン管理用のコンテナを指定できます。
conoha-storage mkdir container --archive=archive_dir
put
コマンドローカルファイルをストレージにアップロードします。
conoha-storage put log.txt container/log.txt
ローカルファイルに-
を指定することで標準入力から入力を受け付けます(Linuxのみ)。
echo 'hello' | conoha-storage put - container/log.txt
put -
は省略できます。
echo 'hello' | conoha-storage container/log.txt
get
コマンドストレージからファイルをダウンロードします。
conoha-storage get container/log.txt log.txt
ローカルファイルに-
を指定することでファイル内容を標準出力に出力します。
conoha-storage get container/log.txt -
get -
には別の記法があります。
conoha-storage cat container/log.txt
studio
コマンド管理用GUIサーバーを立ち上げます。
conoha-storage studio
その他の使い方はconoha-storage --help
で確認できます。
MySQLのバックアップを行う例を記します。
予めバックアップ用のコンテナを準備しておきます。
conoha-storage mkdir backup --archive=backup_archive
mysqldump
の出力をファイルに保存せずに直接ストレージに保存します。
ここでは--delete-after
オプションで30日後に自動的に削除されるようにしています。
mysqldump -x -A | conoha-storage backup/backup.sql --delete-after=2592000
list
コマンドに検索条件やページングを追加FAQs
ConoHaオブジェクトストレージのためのクライアントとコマンド
The npm package conoha-storage receives a total of 4 weekly downloads. As such, conoha-storage popularity was classified as not popular.
We found that conoha-storage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.