hackmud

hackmud

sn_w_usac hint please?
I have identified which upgrade will be destroyed next. Next, I'm guessing the code is a base 6 number and a hash of some sort. But of what? That single upgrade, all my upgrades or something else entirely? I have no idea where to even look and none of the things I've tried have been even close to the code returned by the lock. It's literally been years and I'm still no closer to understanding what the hell this lock wants :-|

Just... someone who managed to figure this out, please give me a rough idea of the size of the ballpark at least?
< >
Showing 1-14 of 14 comments
Yeah, usac is relating to hash stuff.

I believe in order to solve it, you have to give it the hash of the upgrade it will cull. As for how to work out that hash, I believe it factors in multiple properties of the upgrade.

There may also be an extra step applied to each hash usac outputs.
Some things that I reckon are helpful for usac:
- its hashes only care about the current upgrade it is nomming
- to solve it, you need to give sn_w_usac:"<hash>" the hash of the upgrade it is about to cull, on the loc call you're doing
- Try grabbing a bunch of trash upgrades on the market, list them in a stack, delist them and then log the upgrade info and feed em one by one to a usac. You'll probably get helpful results
Originally posted by marto:
- Try grabbing a bunch of trash upgrades on the market, list them in a stack, delist them and then log the upgrade info and feed em one by one to a usac. You'll probably get helpful results

I've been harvesting upgrades from T2 locs, then feeding them to an usac and collecting the hashes in a db. I have a lot of them. Then I have a script where I can pass different combinations of properties to generate hashes, seeing if I can somehow match the correct hashes by bruteforcing 1 and 2 digit salts in. Is this even a viable approach? I don't know.

I now have two different people telling me it does indeed base the hash on the targeted upgrade, so there's some comfort in that. Thank you. I mean that.

Still, I have not made ANY progress at all; I'm no closer to figuring out the right combination than I was the first time I laid eyes on the damned thing. There are just too many unknowns; I don't know the hashing algorithm, I don't know what properties to include and in what order, I don't know if there's a separation character (which is common practice) and I don't know where the salt goes, or if the salting is done as some separate step as it would seem @Spanospy is suggesting. I'm trying to use the scripts.lib hash_code() function, but then I have another unknown, which is how negative numbers map to unsigned ones. This is how hashes tend to work; they're either correct or they're way off.

I don't know, maybe I'm just overthinking this and it turns out to be really simple. It's just frustrating to get absolutely nowhere, even after wasting hundreds, if not thousands of hours on this.
Originally posted by Soondead:
I've been harvesting upgrades from T2 locs
The reason I suggest fiddling with upgrade stacks on the market is that it can manipulate the upgrade into being very easy to experiment with.

Originally posted by Soondead:
I don't know what properties to include and in what order, [..] and I don't know where the salt goes
The order of properties does not matter. This also has obvious implications as to how the hash works :P

Originally posted by Soondead:
This is how hashes tend to work; they're either correct or they're way off.
Usac is not a very secure hash.

Originally posted by Soondead:
I don't know, maybe I'm just overthinking this and it turns out to be really simple. It's just frustrating to get absolutely nowhere, even after wasting hundreds, if not thousands of hours on this.
High-end hackmud puzzles tend to go that way. Just know that the rate you're solving it is pretty normal - usac is a pain in the ass and probably the hardest of the T3 locks to get initial headway on.
Originally posted by marto:
Originally posted by Soondead:
I've been harvesting upgrades from T2 locs
The reason I suggest fiddling with upgrade stacks on the market is that it can manipulate the upgrade into being very easy to experiment with.

What would I be looking for to make it easier? I have close to a 100 modules with the exact same name, tier and rarity. The only thing I've been able to guess from this is that the serial number is probably one of the properties used:

>>fn.usac { filter:{name:"transfer_v1",rarity:1,i:0}, guess:["name","sn"] } Failure tier rarity name i sn salt guessed correct test 2 1 transfer_v1 0 6797169d1be6dd69cc94d05f 0 ceeacff dfbafef fail 2 1 transfer_v1 0 6797169d1be6dd69cc94d061 0 ceeaccb dabafca fail 2 1 transfer_v1 0 6797169d1be6dd69cc94d062 0 ceeaccc dfcafca fail 2 1 transfer_v1 0 67998f321be6dd04b3e65236 0 ecdceed aaabaea fail 2 1 transfer_v1 0 67998f321be6dd04b3e65237 0 ecdceec baabaef fail 2 1 transfer_v1 0 67998f321be6dd04b3e65238 0 ecdceeb ababaef fail 2 1 transfer_v1 0 67996ae01be6dd14b59a81bd 0 fabfcfd ddefaee fail 2 1 transfer_v1 0 67996ae01be6dd14b59a81b8 0 fabfbeb deeeaee fail 2 1 transfer_v1 0 67996ae01be6dd14b59a81b7 0 fabfbea edeeaee fail 2 1 transfer_v1 0 67996ae01be6dd14b59a81b6 0 fabfbdf ddeeaef fail
The SN is indeed one of the properties used. The reason the market is so helpful is that when you list in a stack and delist it, it will give you sequential upgrade SNs back out, so you can minimise variance in the SN. Makes for easier usac testing!
Originally posted by marto:
The SN is indeed one of the properties used. The reason the market is so helpful is that when you list in a stack and delist it, it will give you sequential upgrade SNs back out, so you can minimise variance in the SN. Makes for easier usac testing!
I have loads of identical upgrades with sequential serial numbers, and the only thing this has done is raise more questions; hashing those serial numbers actually produce less variance in the hash than the correct hashes. No matter what other properties I add, I can't seem to get enough variance in the output hashes. I even made a script to bruteforce all property combinations, and the results are nowhere near.

There seems to be some fundamental issue I'm not seeing, and I'm getting real tired of trying to imagine what it could be. It could simply be that scripts.lib hash_code() is the wrong method, but if not that one... then what? The possibilities are endless.
I don't think scripts.lib.hash_code() is going to be helpful for this problem.

So you have loads of identical upgrades, with sn's that are sequential. That's a good starting point. Are you testing against a lock sim? Move the identical upgrades (and nothing else) onto a user you're doing testing with, make sure to note down the properties of all the upgrades you have, then start testing against usac keeping track of both 1) which upgrade was just eaten and 2) the resulting hash output from the lock. The goal here is to understand how the hashing algo works based on knowing everything about the input (upgrade properties) and what the output hash is. If the only thing different between your upgrades is the sn, and those sn's are all sequential with each other, I think you will definitely start to see a pattern with the lock's hash output. Figuring out the pattern from that process is going to get you most of the way there.
Originally posted by bowkill:
I don't think scripts.lib.hash_code() is going to be helpful for this problem.

Well, this is useful. If nothing else, it explains why the past week of trial and error has led me absolutely nowhere. Ofcourse, it also opens up a new set of problems, one that I have feared, which is how else the serial number could be interpreted. (As well as any other upgrade properties that seem to affect the output)

I've been feeding hundreds upon hundreds of upgrades to an actual lock and recording the results. I do see a pattern, but I also see that the pattern appears to change and I can't see why. It happens much too frequently to be just lock rotation. All this time, I've been trying to replicate something close to the "base number" so to speak, but nothing I try seems to get even close.
The lock rotating *will* change up the pattern you're seeing so I could see how that would be pretty confusing. If you have to test against a real lock, would recommend putting a simple lock in front of it that makes it easy to determine when a rotation has happened. If you can feed ~40 *identical* upgrades with sequential sn's into a usac without any rotations (and record the upgrade eaten -> hash output data) you should have something to work with.

That said, using a lock sim would guarantee the usac doesn't rotate until you want it to which would make your testing much less painful.
I think it's time to throw in the towel. It seems no matter what I try, I can't figure out how to calculate the base number. There are simply too many unknowns; I don't know how to interpret the serial number, much less any of the other strings or numbers. I have tried literally hundreds of different ways and bruteforced billions of combinations for each of them and nothing works. There's some trick to all of this that I just can't see.
Originally posted by Soondead:
I think it's time to throw in the towel. It seems no matter what I try, I can't figure out how to calculate the base number. There are simply too many unknowns; I don't know how to interpret the serial number, much less any of the other strings or numbers. I have tried literally hundreds of different ways and bruteforced billions of combinations for each of them and nothing works. There's some trick to all of this that I just can't see.

I can't say I know the solution to this - but I do have experience with bashing my face into a problem repeatedly. I find the most success in working on a problem as much as I can before bed and then forgetting about it for a little bit.

Something about the subconscious seems to churn through the problem and I usually find that I come up with a different solution the next day and at least get closer if not totally solving. Give it a go if you haven't - remember that insanity is trying the same thing over and over again.

Try different approaches and make sure to note what is not working w/ specifics and double check that your logic is sound (am I certain this strat isn't working) Hope this helps!
Originally posted by stevedidWHAT:
Something about the subconscious seems to churn through the problem and I usually find that I come up with a different solution the next day and at least get closer if not totally solving. Give it a go if you haven't - remember that insanity is trying the same thing over and over again.

In general, this is sound advice and a technique I've used plenty of times not just with hackmud but with other types of problems as well. I've worked with programming, networks, storage, backup and virtualization for decades and seen my share of weird problems.

However, this is the fourth time I've thrown myself against this particular problem -- I'm not exaggarating when I say I've spent hundreds, if not thousands of hours trying to crack it -- and although I got a number of hints this time around that I haven't gotten before (like l.hash_code() being wrong despite being the obvious choice, or the order of properties not making a difference, which rules out the typical approach when hashing something), I'm still not any closer to seeing numbers that add up, multiply or xor to anything near the "base number" that the lock seems to generate for each upgrade. Those hints close off parts of the rabbit hole but it's still way too deep. There's some form of transformation going on that I can't replicate despite trying every possible way I can think of to convert numbers into strings like sys.upgrades/market.browse does, hash strings in every way I can think of or find algorithms for (going WAY beyond what can be reasonably expected in a game), chop up the serial number into individual bytes, words and dwords, as well as combining all of these things mentioned in every way possible (by way of bruteforcing scripts). And still... nothing. Absolutely nothing.

All I know is it's taking unknown bits of information, transforming all of that into just something you can observe as a number between 0 and 279935 or a string of digits a-f, take your pick. Something goes in, something completely different comes back out. Then it adds salt by picking one or two digits and rotates each of them by one, so that even if you know the secret formula you still have at least 7:1 odds of failure on your first guess. The only thing I know about the digit picking is that the digit chosen usually increments by one if the serial number increments by one. All of these things are easily observed within a few minutes using techniques described elsewhere in this thread so I'm not really spoiling anything here. Everything else about the lock is 100% pure guesswork where you fumble around completely in the dark.

Sorry about the rant.
Originally posted by Soondead:
the digit chosen usually increments by one if the serial number increments by one
I wouldn't think about it as a digit at all, just a string.
< >
Showing 1-14 of 14 comments
Per page: 1530 50