Coder Social home page Coder Social logo

warp-reg.sh's Introduction

Hi there 👋


⬆️ only knows how to write shell

💻 Use bash (config) · ⌨️ Use archlinux
📫 Wannan reachout? Discussions Matrix

warp-reg.sh's People

Contributors

chise0713 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

warp-reg.sh's Issues

Error processing hexadecimal number in warp-reg.sh

I encountered an issue when running the warp-reg.sh script, specifically at line 119, where it attempts to process hexadecimal numbers. It seems to fail with an "invalid hex number" error, leading to incomplete output with empty endpoint and reserved values.

Command Executed:

./warp-reg.sh

Expected Output:

A JSON object with valid "endpoint", "reserved_dec", "reserved_hex", and "reserved_str" values.

Actual Output:

{
    "endpoint": {},
    "reserved_dec": [0,,],
    "reserved_hex": "0x",
    "reserved_str": ""
}

Steps to Reproduce:

  • Download the script via wget: wget https://raw.githubusercontent.com/chise0713/warp-reg.sh/master/warp-reg.sh
  • Make the script executable: chmod +x warp-reg.sh
  • Execute the script: ./warp-reg.sh
  • The issue occurs at line 119, where the script uses printf with an 0x prefix to convert hexadecimal to decimal values. This fails when the preceding steps probably result in an empty or malformed "reserved_hex" string.

Could you please look into this?

Thank you for your time and this useful script!

replace python3 and xxd with jq

because python3 is very huge, and xxd is not always available on different operating systems; so please replace them with jq

无法输出正常节点信息

[root@]# bash -c "$(curl -L warp-reg.vercel.app)"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 4142 100 4142 0 0 9061 0 --:--:-- --:--:-- --:--:-- 9061
Algorithm X25519 not found
unable to load key
140077918467984:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:707:Expecting: ANY PRIVATE KEY

ERROR: "reg" function returned with 1, exiting.

DD新安装的Debian 12,运行后报错

root@localhost:~# bash -c "$(curl -L warp-reg.vercel.app)"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  2716  100  2716    0     0   3050      0 --:--:-- --:--:-- --:--:-- 17986
######################################################################## 100.0%
######################################################################## 100.0%
environment: line 17: python3: command not found
environment: line 22: xxd: command not found
environment: line 24: printf: 0x: invalid hex number
{
    "endpoint":{
    },
    "reserved_dec": [0,,],
    "reserved_hex": "0x",
    "reserved_str": "",
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.