一种自杀的方式

in hive-180932 •  4 months ago  (edited)

最近在研究多签,突然突发奇想能不能用多签的方式来自杀(封自己号)。

原理上是把操作的权限改高,然后自然所有操作都没法签名成功,也就等于封号了。

想到就做,写了一个代码试试。

其实这是修改密码的代码,大家也可以试试。

from beem.steem import Steem
from beembase import operations
from beem.transactionbuilder import TransactionBuilder
from beem.account import Account
from beemgraphenebase.account import PasswordKey

nodes = 'https://cn.steems.top'  # 节点

player = "iwantgotodie"#用户名

password="P5uxxxxxxxxxxxxxxxxx6JgH"#主密码




#从密码生成KEY
owner_key = PasswordKey(player, password, role="owner")
posting_key = PasswordKey(player, password, role="posting")
active_key = PasswordKey(player, password, role="active")
memo_key = PasswordKey(player, password, role="memo")



owner_key=owner_key.get_public()
posting_key = posting_key.get_public()
active_key = active_key.get_public()
memo_key = memo_key.get_public()




key = PasswordKey(player, password, role="owner")# owner key
key=key.get_private()
key=str(key)


s = Steem(keys=[key], node=nodes)
account = Account(player, steem_instance=s)




who_owner = {'weight_threshold': 10, 'account_auths': [], 'key_auths': [[str(owner_key), 1]]}
who_active = {'weight_threshold': 10, 'account_auths': [], 'key_auths': [[str(active_key), 1]]}
who_posting = {'weight_threshold': 10, 'account_auths': [], 'key_auths': [[str(posting_key), 1]]}



op = operations.Account_update(
    **{
        "account": account["name"],
        "json_metadata": account["json_metadata"],
        "owner": who_owner,
        "active":who_active,
        "posting":who_posting,
        "memo_key": str(memo_key)
    })

tx = TransactionBuilder(steem_instance=s)

tx.appendOps(op)
# 把签名添加并签名
tx.appendSigner(player, "owner")
tx.sign()

# 广播
tx.broadcast()
print("密码修改完成")

我把权限都改成了weight_threshold': 10,而自己签名的权限只有1

那就无论如何就无法签名成功了。

广播信息,成功
https://steemd.com/@iwantgotodie
来看看账号信息:

image.png

修改成功了。

试试操作账户看看,好了,无法转账,无法发帖,无法点赞,无法修改密码。

好了,这账号自杀成功,我封了自己的号。

有兴趣测试这个账号可以拿去玩玩看,我把私钥暴露一下.
里面我转了一点钱进去,有本事的请转走:

active key:5J9wB73CheCQxTWpYW5zbjUSmDKEgSKMkU3ChJpT1t8HdN7AC3J
账号:iwantgotodie

抢救的办法:

自杀之后,其实还是有抢救的办法,就是找账号创建者来帮忙恢复账号。

这个办法可以重设owner key,达到复活的目的。

那有没彻底的自杀方式呢?

我考虑了一下,应该可以拉上账户创建人一起殉情,那就达到完全自杀的效果了。
下回试试

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Hi! Did you know that steemit.com is now censoring users and posts based on their opinions?
All the posts of these users are gone!
https://github.com/steemit/condenser/commit/3394af78127bdd8d037c2d49983b7b9491397296

Here's a list of some banned users:
'roelandp', 'blocktrades', 'anyx', 'ausbitbank', 'gtg', 'themarkymark', 'lukestokes.mhth', 'netuoso', 'innerhive'
See anyone you recognize? There could be more, they also have a remote IP ban list.

Will you be censored next?

鱼哥好心情!

HF24能不能让这号起死回生?🙈

  ·  4 months ago 

给鱼哥拍手了👏
!shop

  ·  4 months ago 

你好鸭,maiyude!

@annepink给您叫了一份外卖!

苏式鲜肉月饼

吃饱了吗?跟我猜拳吧! 石头,剪刀,布~

如果您对我的服务满意,请不要吝啬您的点赞~

把密码给我就行!