diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-04-16 22:14:27 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-04-16 22:14:27 +0200 |
commit | 5338704d3d5175fdbdb97f37bf06fcb9e23504e6 (patch) | |
tree | cc55e3f250cc403836cfb84adf4912cadf0d2d85 /root/.bash_aliases | |
parent | arc (diff) | |
download | n-5338704d3d5175fdbdb97f37bf06fcb9e23504e6.tar n-5338704d3d5175fdbdb97f37bf06fcb9e23504e6.tar.gz n-5338704d3d5175fdbdb97f37bf06fcb9e23504e6.tar.bz2 n-5338704d3d5175fdbdb97f37bf06fcb9e23504e6.tar.lz n-5338704d3d5175fdbdb97f37bf06fcb9e23504e6.tar.xz n-5338704d3d5175fdbdb97f37bf06fcb9e23504e6.tar.zst n-5338704d3d5175fdbdb97f37bf06fcb9e23504e6.zip |
Diffstat (limited to 'root/.bash_aliases')
-rw-r--r-- | root/.bash_aliases | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/root/.bash_aliases b/root/.bash_aliases index a9438ea..30e9f7d 100644 --- a/root/.bash_aliases +++ b/root/.bash_aliases @@ -1,6 +1,7 @@ export CT_ALLOW_BUILD_AS_ROOT_SURE=1 function register () { - curl https://www.register.si/wp-admin/admin-ajax.php -X POST --data-raw "_ajax_nonce=693acd4cff&action=get_whois_data&domain=$1" 2> /dev/null | grep "<td>" | sed "s/^\s*//g" | cut -d\< -f2 | cut -d\> -f2 | grep "[[:print:]]" + n=`curl https://www.register.si | grep nonce | head -n 1 | cut -d\" -f8` + curl https://www.register.si/wp-admin/admin-ajax.php -X POST --data-raw "_ajax_nonce=$n&action=get_whois_data&domain=$1" 2> /dev/null | grep "<td>" | sed "s/^\s*//g" | cut -d\< -f2 | cut -d\> -f2 | grep "[[:print:]]" } alias r=R alias R="R --quiet" |