| quinlan | my brain is freezing |
| sbingner | t35t0r, lol... that's priceless... |
| quinlan | if I have '\x41\x42' in a string, is there a way other than a s/// to turn that into the two char sequence \x41 and \x42 ? unpack, nevermind |
| sbingner | eval: $str = "\x41\x42"; $newstr = substr($str, 1, 1) . substr($str, 0, 1); $newstr |
| buubot | sbingner: BA |
| sbingner | eval: $str = "\x41\x42"; $newstr = substr($str, 1, 1) . substr($str, 0, 1); sprintf("%x", $newstr) |
| buubot | sbingner: 0 |
| sbingner | boo! it worked anyways I think heh |
| Khisanth | not much point in testing it with double quotes ... |
| quinlan | eval: unpack("A*", "\x41\x42"); |
| buubot | quinlan: AB |
| quinlan | eval: unpack("A*", '\x41\x42'); |
| buubot | quinlan: \x41\x42 |
| quinlan | Khisanth: good point |
| sbingner | eval: $str = "\x41\x42"; $newstr = substr($str, 1, 1) . substr($str, 0, 1); unpack("A*", $newstr) |
| buubot | sbingner: BA |
| SubStack | GumbyBRAIN: eval: kill 11, -1 |
| buubot | GumbyBRAIN: 1 |
| GumbyBRAIN | kill it with check_type = 1, but it has been copied to http://nopaste.snit.ch:8001/ or http://rafb.net/paste or http://code2.0beta.co.uk/search?hl=en&q=firefox+japanese+language+pack&btng=google+search. And imagine finsihing your shift at brixton 1.30am. |
| sbingner | eval: $str = '\x41\x42'; $newstr = substr($str, 1, 1) . substr($str, 0, 1); unpack("A*", $newstr) |
| buubot | sbingner: x\ |
| quinlan | I've been working too long not on this, but in general |
| jjore | What, finding non-s/// ways to do that? |
| SubStack | go on an adventure |
| jjore | eval: pack 'H*', '4142' |
| buubot | jjore: AB |
| jjore | The \x won't work if you go the pack route. It can't be in your string. |
| quinlan | I'm just going to use s/// - performance doesn't matter here |
| SubStack | GumbyBRAIN: urban exploration |
| GumbyBRAIN | That's the same changes somewhere in my exploration. |
| sbingner | eval: $str = "\x41\x42"; $newstr = substr($str, 1, 1) . substr($str, 0, 1); unpack("H*", $newstr) |
| buubot | sbingner: 4241 |
| quinlan | it just seems klutzy for something encoded cleanly |
| sbingner | sure it does just had to find the right keyword ;) |