Pages: 1 2
Posted on 21-03-28, 22:43 in Hardware/Product Recommendations Thread
Post: #21 of 27
Since: 08-01-20

Last post: 1328 days
Last view: 1227 days
So the Boox Nova 3 is great. The screen is a bit small, but if it were any larger using it one handed would be awkward.

I live near a large chain grocery store that has free wifi, and I want to steal it. It's probably 150 yards away, max. Is there some sort of antenna I could use to get a reasonable (5 MB/s) connection?

It's line of sight, catty-corner down the block a bit.

I'm sure I could find other unsecured networks within the same distance.

Really don't want to pay $60 a month for internet when I can pay $200 for an antenna and get it for free, forever.
Posted on 21-03-28, 23:17 in Instant messaging (cr)apps
Post: #22 of 27
Since: 08-01-20

Last post: 1328 days
Last view: 1227 days
There's been a spate of literally autistic teenage boys in England being set up in absurd Kafka-esque "push the button to make the kitschy 1950s-style Nazi death ray fry London" entrapment plots. In one case, the police and prosecution were able to get every message this kid ever sent, and every message sent by the people he communicated with, on Telegram. So there is apparently a backdoor to Telegram somewhere.

https://prism-break.org/en/all/#instant-messaging

Looking at PRISM Break, there are a number of options you didn't mention.

If I were you, I'd ask various dissident/criminal* communities about this, as they have the motivation to know best.

I think Curtis Yarvin's Urbit is becoming a big deal among dissident Righties. Some of the more intellectual thinkers use it, as do old hats.

I taught one of my cousins to buy insulin (and fentanyl test strips to make sure it wasn't cut with fentanyl, in true Chinese fashion and as they do with nootropics) from pharmacies in India. I'm considering buying permanent aromatase inhibitors and metformin from the same to lose lockdown weight and cope with decreasing fitness as I age. Good for cancer drugs too. I had to set up a tutanota email, buy a burner phone/sim, and get a fake ID to buy a private mailbox in case the FDA wants to violently sodomize me for importing stuff that is over the counter in nations that don't consider their populations cattle to be farmed for tax revenue.

I2P is supposedly better than Tor as a platform for building anonymous private distributed network apps, but that's literally just something I read and I have no idea if this is true or not. Granted, the person who wrote it was someone who used to pull 500,000 a year in Silicon Valley, so I'll take his word for it.

* In order of least to most risk: internet trolls, pirates, computer criminals (their instructions on messaging them to remove ransomware are informative), illicit pharmaceutical importers/distributors/buyers, Nazi/Antifa/Eco-Anarchist radicals that have successfully avoided arrest, people with porn habits that are varying levels of illegal (too many categories to count), actual zoosexuals/pedophiles, and so on. As long as you approach it in a neutral fashion they are usually very helpful, just follow all the usual precautions to prevent anything from being traced back to you - and make it very obvious that you're not one of them, just someone living in a nation that is being used as a political football by the powers that be and who needs some advice on laying low.
Posted on 21-03-29, 20:09 in Instant messaging (cr)apps
Post: #23 of 27
Since: 08-01-20

Last post: 1328 days
Last view: 1227 days
If you take a look at the link I posted earlier (which is a curated list of software designed to evade the PRISM surveillance system used by the NSA; hence PRISM Break) you'll see a number of links relevant to your interests. I'll post long-form, for my own use in the future.

1. Briar, P2P messaging app.

https://briarproject.org/
Some sort of cell-phone based peer-to-peer mesh network(?) civil breakdown and anti-authority app. Works with Tor too.

https://code.briarproject.org/briar/briar/-/wikis/home
^Technical details on their protocols and software stack.

https://briarproject.org/how-it-works/
^Same as above, but quick rundown version with infographics.

https://briarproject.org/about-us/
^People involved.

2. Silence, encrypted text messaging app. Exactly what it says on the tin, with all the limitations (threat can see who, when, and how often you communicate even if they can't see the contents).

https://silence.im/

3. Psi, cross platform XMPP client. Skim the Psi wikipedia link below for a quick rundown, but I think it meets almost all your needs.

https://psi-im.org/

https://en.wikipedia.org/wiki/Psi_%28instant_messaging_client%29

https://en.wikipedia.org/wiki/XMPP
^Has a ton of extensions, including connections to stuff like AIM and others. Worth a read.

4. Conversations, Android XMPP client. Would work well with number three above since it doesn't have an Android app. Has recommendations on XMPP servers to run in the link below.

https://github.com/iNPUTmice/Conversations

5. Dino, XMPP client for Linux.

https://dino.im/

6. Retroshare, P2P communication and piracy filesharing software based on GNU Privacy Guard.

https://retroshare.cc/

https://en.wikipedia.org/wiki/Retroshare
Posted on 21-03-31, 22:11 in Looking for a python script in the now defunct archives (revision 1)
Post: #24 of 27
Since: 08-01-20

Last post: 1328 days
Last view: 1227 days
Got another python question.

Code:
import sys, glob, os, struct

#feed original filename, detect named subfiles, merge
def mergeIMF(filename):
with open(filename, 'wb') as file:
for i in range(1,11,1):
subfilename = filename[0:8] + "_subfile_" + str(i) + filename[8:]
print(subfilename, end="\t")
if os.path.exists(subfilename):
with open(subfilename, 'rb') as subfile:
#get subfile size, do bitshift shit, little endian... or encode somehow? google it.
#write to file in correct order
#write bytes(size of subfile) of this subfile to file
#close subfile
subfilesize = os.path.getsize(subfilename)
print(subfilesize, end="\t")
subfilesizebyte = struct.pack('<I', subfilesize)
print(subfilesizebyte)
subfile.close()
else:
pass
file.close()

for arg in sys.argv[1:]:
for files in glob.glob(arg):
mergeIMF(files)


Output:

python .\imf_merge.py .\IMF00A.IMG
.\IMF00A_subfile_1.IMG 80 b'P\x00\x00\x00'
.\IMF00A_subfile_2.IMG 64 b'@\x00\x00\x00'
.\IMF00A_subfile_3.IMG 124 b'|\x00\x00\x00'
.\IMF00A_subfile_4.IMG 16 b'\x10\x00\x00\x00'
.\IMF00A_subfile_5.IMG 1360 b'P\x05\x00\x00'
.\IMF00A_subfile_6.IMG 2084 b'$\x08\x00\x00'
.\IMF00A_subfile_7.IMG 78812 b'\xdc3\x01\x00'
.\IMF00A_subfile_8.IMG 1660 b'|\x06\x00\x00'
.\IMF00A_subfile_9.IMG 8156 b'\xdc\x1f\x00\x00'
.\IMF00A_subfile_10.IMG 4328 b'\xe8\x10\x00\x00'


Files (not actually needed, you can just rename any 10 files as IMF00A_subfile_?.img, where? is a number between 1 and 10, both inclusive):
https://ufile.io/lkcr8f2y

Goal of this script right now is to print the file size of each subfile as a little endian byte string with a word size of 4 bytes. As you can see from the output, in all but 3 cases it's printing I think an ascii character for the first (least significant) byte instead of a byte string.

I'm trying to figure out how to use struct.pack.
Posted on 21-03-31, 23:00 in Looking for a python script in the now defunct archives (revision 3)
Post: #25 of 27
Since: 08-01-20

Last post: 1328 days
Last view: 1227 days
Posted by funkyass
its not gonna escape printable characters.You might want to poke at string formatting.

to convert between the two you are just reversing the string byte by byte at the end of the day.

Very few processors use big-endian, so there actually isn't any need to fumble with the byte order, unless you need to muck about with low-level networking.

MIMF/IMF*.IMG are the event scripts, background palettes, and sprite palettes for the corresponding "room" in Saga Frontier. It's a PS1 game - and *.IMG files always have a 10 entry header, with 4 little endian bytes per subfile entry denoting where they start in the file - so it must be little endian.

The modder I'm working for needs the ability to resize each subfile to add/remove events for each room, and I figured he needs 3 scripts: one to print info about each IMF to tell him how much room he has left in it's sectors (by taking the IMF file size modulo 2048 sector size), a script to split each IMF into its subfiles, and a script to merge a split IMF's subfiles back into a legal IMF file. The first two are done, I'm working on the third now.

Regardless of what it should be doing regarding escaping printable characters, I looked up the least significant bytes of the file sizes (which are the decimal numbers printed before the byte string) in an ASCII table and that's what it's doing for some reason. The question is why, and why only some of them.

How could I debug this behavior? Or should I quit trying to learn struct.pack for now and go back to bitwise logical operations and shifts?
Post: #26 of 27
Since: 08-01-20

Last post: 1328 days
Last view: 1227 days
Posted by funkyass
you aren't printing a string representation of bytes, you are literally sending the bytes to stdout. stdout isn't equipped to show raw bytes. If you want the hex values for the bytes, you should look in python's string formatting.

Posted by Screwtape
Goal of this script right now is to print the file size of each subfile as a little endian byte string with a word size of 4 bytes. As you can see from the output, in all but 3 cases it's printing I think an ascii character for the first (least significant) byte instead of a byte string.


You are doing it exactly right.

In your script, the "subfilesizebyte" is a byte string of length 4, representing the file-size as a 32-bit little-endian integer.

However, most of the bytes in that byte-string do not map to human-readable characters in ASCII, so if you just "print(subfilesizebyte)" then Python will encode the byte-string in a human readable way.

Looking at subfile 5 in your example, the length is 1360 in decimal, or 0x00000550 as a 32-bit hexadecimal number. If we convert that to little-endian bytes, we get: 0x50, 0x05, 0x00, 0x00.

Python's byte-string syntax is designed to express bytes of any value, even ones that don't map to printable characters in ASCII. For example, you generally can't type a 0x00 byte on a keyboard, and even if you could it doesn't display as anything, so Python lets you encode that as the four bytes '\x00'. Python interprets that sequence as a single 0x00 byte, but it can safely be written in source-code and printed out without confusion.

So, in Python's byte-string syntax, we could write those four bytes as b'\x50\x05\x00\x00'. But since 0x50 is the ASCII code for 'P' we don't have to hex-encode the first byte to make it printable, we can just write b'P\x05\x00\x00' which is what your program outputs.

The question is - what did you *expect* to see?

That's an awful lot of text to tell someone to use *.hex()
Post: #27 of 27
Since: 08-01-20

Last post: 1328 days
Last view: 1227 days
Posted by Screwtape
I'm glad to hear you found a way to display integers that conforms to your unstated assumptions.

Is it worse than assuming I don't have a wife, family, and full time job; and can indulge an intellectual game of capture the flag more commonly known as "just do the research maaaaaaaaaaaaaaahhhhhhhhhnnnnnnnnnn *massive bong rip*"?

I'm already extremely burned out as it is, and I'm romhacking as a favor for a friend. Would it kill you to not take the most roundabout way possible of explaining something, just once? Assume IDGAF about intellectual curiosity, and I just want to finish this problem, shit the script out of my brain via my fingers, and go back to something more interesting.
Pages: 1 2
    Main » MysticLord » List of posts
    Yes, it's an ad.