我想在python重写中创建一个不和谐的bot。该机器人将是垃圾邮件机器人,但我只是不知道从哪里开始。我有4个先前制造的不和谐机器人,目前仍在开发中。
我试图利用自助机器人功能无济于事。该机器人现在可以进行一些nmap扫描,以接受标志,dns枚举,ping网站等。还有WhatWaf。它在VPS上运行。
@client.command()
async def nmap(ctx, *, arg):
async with ctx.typing():
allowed_chars = set('abcdefghijklmnopqrstuvwxuzABCDEFGHIJKLMNOPQRSTUVWXYZ0987654321.-')
if set(arg).issubset(allowed_chars):
stdoutdata = subprocess.getoutput("nmap " + arg)
#await ctx.send(stdoutdata)
embed = discord.Embed(description=stdoutdata, color=0x0FF00)
await ctx.send(embed=embed)
else:
await ctx.send('Nope.')
@client.command()
async def whatwaf(ctx, *, arg):
async with ctx.typing():
allowed_chars = set('abcdefghijklmnopqrstuvwxuzABCDEFGHIJKLMNOPQRSTUVWXYZ0987654321.-')
if set(arg).issubset(allowed_chars):
stdoutdata = subprocess.getoutput("wafw00f " + arg)
#await ctx.send(stdoutdata)
embed = discord.Embed(description=stdoutdata, color=0x0FF00)
await ctx.send(embed=embed)
else:
await ctx.send('Nope.')
@client.command()
async def dnsenum(ctx, *, arg):
async with ctx.typing():
allowed_chars = set('abcdefghijklmnopqrstuvwxuzABCDEFGHIJKLMNOPQRSTUVWXYZ0987654321.-')
if set(arg).issubset(allowed_chars):
stdoutdata = subprocess.getoutput("dnsenum --enum " + arg)
#await ctx.send(stdoutdata)
embed = discord.Embed(description=stdoutdata, color=0x0FF00)
await ctx.send(embed=embed)
else:
await ctx.send('Nope.')
我希望它能够使用来自不和谐令牌的帐户通过邀请链接向其他服务器发送垃圾邮件。