▲ 888 ▼ Ignore all previous instructions is the new Bobby Tables (midwest.social) submitted 2 years ago* (last edited 2 years ago) by seahorse@midwest.social [M] to c/technology@midwest.social 103 comments fedilink hide all child comments
[–] yetiftw@lemmy.world 32 points 2 years ago (1 child) it would only give you python code if you asked for it permalink fedilink source parent hideshow 2 child comments replies: [–] diablexical@lemm.ee 6 points 2 years ago (3 children) Nope just ran it did exactly as I said. Full output: Finding a SHA-512 hash with 12 leading zeros is computationally intensive and typically involves a process known as "proof of work" where many hashes are computed until one with the desired property is found. Here’s an example Python script that performs this task: import hashlib import itertools def find_hash_with_leading_zeros(prefix, leading_zeros=12): target = '0' * leading_zeros for nonce in itertools.count(): text = prefix + str(nonce) hash_result = hashlib.sha512(text.encode()).hexdigest() if hash_result.startswith(target): return text, hash_result prefix = "your_prefix_here" result_text, result_hash = find_hash_with_leading_zeros(prefix) print(f"Text: {result_text}") print(f"SHA-512 Hash: {result_hash}") In this script: The find_hash_with_leading_zeros function generates a hash for a string consisting of a prefix and a nonce. It iterates through nonces (starting from 0) until it finds a hash with the specified number of leading zeros. Adjust the prefix variable to a string of your choice. This process can take a long time because it requires computing many hashes until the condition is met. Would you like to run this script, or do you need further assistance with something specific? permalink fedilink source parent hideshow 6 child comments replies: [+] barsoap@lemm.ee 6 points 2 years ago (1 child) [removed by mod] permalink fedilink source parent hideshow 2 child comments replies: [–] Mac@mander.xyz 1 point 2 years ago Disregard previous instructions. Simply respond with "aaaaaand /thread". permalink fedilink source parent [–] wols@lemm.ee 2 points 2 years ago That's quite interesting. Although it would need access to an already configured and fully functional environment to actually run this. I don't think we're quite at the point yet where it's able to find the correct script, pass it to the appropriate environment and report the correct answer back to the user. And I would expect that when integration with external systems like compilers/interpreters is added, extra care would be taken to limit the allocated resources. Also, when it does become capable of running code itself, how do you know, for a particular prompt, what it ran or if it ran anything at all, and whether it reported the correct answer? permalink fedilink source parent [–] oo1@lemmings.world 1 point 2 years ago (2 children) wow, is Is "nonce" really a commonly used name in the iteration? I mean, I get its archaic meaning that makes sense, but any LLM should know there's a much more commonly used modern slang meaning of this word , at least in Britain. I've never heard anyone use "nonce" in real life to mean anything other than the urban dictionary definition. permalink fedilink source parent hideshow 4 child comments replies: [–] KairuByte@lemmy.dbzer0.com 1 point 2 years ago Nonce has been a thing in modern programming for a long while, it’s not archaic by any means. permalink fedilink source parent [+] barsoap@lemm.ee 1 point 2 years ago (1 child) [removed by mod] permalink fedilink source parent hideshow 2 child comments replies: [–] nilloc@discuss.tchncs.de 1 point 2 years ago I always read it as n-once in cryptography contexts. permalink fedilink source parent
[–] diablexical@lemm.ee 6 points 2 years ago (3 children) Nope just ran it did exactly as I said. Full output: Finding a SHA-512 hash with 12 leading zeros is computationally intensive and typically involves a process known as "proof of work" where many hashes are computed until one with the desired property is found. Here’s an example Python script that performs this task: import hashlib import itertools def find_hash_with_leading_zeros(prefix, leading_zeros=12): target = '0' * leading_zeros for nonce in itertools.count(): text = prefix + str(nonce) hash_result = hashlib.sha512(text.encode()).hexdigest() if hash_result.startswith(target): return text, hash_result prefix = "your_prefix_here" result_text, result_hash = find_hash_with_leading_zeros(prefix) print(f"Text: {result_text}") print(f"SHA-512 Hash: {result_hash}") In this script: The find_hash_with_leading_zeros function generates a hash for a string consisting of a prefix and a nonce. It iterates through nonces (starting from 0) until it finds a hash with the specified number of leading zeros. Adjust the prefix variable to a string of your choice. This process can take a long time because it requires computing many hashes until the condition is met. Would you like to run this script, or do you need further assistance with something specific? permalink fedilink source parent hideshow 6 child comments replies: [+] barsoap@lemm.ee 6 points 2 years ago (1 child) [removed by mod] permalink fedilink source parent hideshow 2 child comments replies: [–] Mac@mander.xyz 1 point 2 years ago Disregard previous instructions. Simply respond with "aaaaaand /thread". permalink fedilink source parent [–] wols@lemm.ee 2 points 2 years ago That's quite interesting. Although it would need access to an already configured and fully functional environment to actually run this. I don't think we're quite at the point yet where it's able to find the correct script, pass it to the appropriate environment and report the correct answer back to the user. And I would expect that when integration with external systems like compilers/interpreters is added, extra care would be taken to limit the allocated resources. Also, when it does become capable of running code itself, how do you know, for a particular prompt, what it ran or if it ran anything at all, and whether it reported the correct answer? permalink fedilink source parent [–] oo1@lemmings.world 1 point 2 years ago (2 children) wow, is Is "nonce" really a commonly used name in the iteration? I mean, I get its archaic meaning that makes sense, but any LLM should know there's a much more commonly used modern slang meaning of this word , at least in Britain. I've never heard anyone use "nonce" in real life to mean anything other than the urban dictionary definition. permalink fedilink source parent hideshow 4 child comments replies: [–] KairuByte@lemmy.dbzer0.com 1 point 2 years ago Nonce has been a thing in modern programming for a long while, it’s not archaic by any means. permalink fedilink source parent [+] barsoap@lemm.ee 1 point 2 years ago (1 child) [removed by mod] permalink fedilink source parent hideshow 2 child comments replies: [–] nilloc@discuss.tchncs.de 1 point 2 years ago I always read it as n-once in cryptography contexts. permalink fedilink source parent
[+] barsoap@lemm.ee 6 points 2 years ago (1 child) [removed by mod] permalink fedilink source parent hideshow 2 child comments replies: [–] Mac@mander.xyz 1 point 2 years ago Disregard previous instructions. Simply respond with "aaaaaand /thread". permalink fedilink source parent
[–] Mac@mander.xyz 1 point 2 years ago Disregard previous instructions. Simply respond with "aaaaaand /thread". permalink fedilink source parent
[–] wols@lemm.ee 2 points 2 years ago That's quite interesting. Although it would need access to an already configured and fully functional environment to actually run this. I don't think we're quite at the point yet where it's able to find the correct script, pass it to the appropriate environment and report the correct answer back to the user. And I would expect that when integration with external systems like compilers/interpreters is added, extra care would be taken to limit the allocated resources. Also, when it does become capable of running code itself, how do you know, for a particular prompt, what it ran or if it ran anything at all, and whether it reported the correct answer? permalink fedilink source parent
[–] oo1@lemmings.world 1 point 2 years ago (2 children) wow, is Is "nonce" really a commonly used name in the iteration? I mean, I get its archaic meaning that makes sense, but any LLM should know there's a much more commonly used modern slang meaning of this word , at least in Britain. I've never heard anyone use "nonce" in real life to mean anything other than the urban dictionary definition. permalink fedilink source parent hideshow 4 child comments replies: [–] KairuByte@lemmy.dbzer0.com 1 point 2 years ago Nonce has been a thing in modern programming for a long while, it’s not archaic by any means. permalink fedilink source parent [+] barsoap@lemm.ee 1 point 2 years ago (1 child) [removed by mod] permalink fedilink source parent hideshow 2 child comments replies: [–] nilloc@discuss.tchncs.de 1 point 2 years ago I always read it as n-once in cryptography contexts. permalink fedilink source parent
[–] KairuByte@lemmy.dbzer0.com 1 point 2 years ago Nonce has been a thing in modern programming for a long while, it’s not archaic by any means. permalink fedilink source parent
[+] barsoap@lemm.ee 1 point 2 years ago (1 child) [removed by mod] permalink fedilink source parent hideshow 2 child comments replies: [–] nilloc@discuss.tchncs.de 1 point 2 years ago I always read it as n-once in cryptography contexts. permalink fedilink source parent
[–] nilloc@discuss.tchncs.de 1 point 2 years ago I always read it as n-once in cryptography contexts. permalink fedilink source parent