arisuchan    [ tech / cult / art ]   [ λ / Δ ]   [ psy ]   [ ru ]   [ random ]   [ meta ]   [ all ]    info / stickers     temporarily disabledtemporarily disabled

/λ/ - programming

structure and interpretation of computer programs.
Name
Email
Subject
Comment

formatting options

File
Password (For file deletion.)

Help me fix this shit. https://archive.arisuchan.jp/q/res/2703.html#2703

Kalyx ######


File: 1505340634192.png (33.4 KB, 640x2097, DCANSI.png)

 No.649[Reply]

Anyone here written a software crack before?

I know there are a whole bunch of keys floating around for Sublime Text, but I thought it would be fun to write my own crack for it anyway. I might even get around to writing a keygen. Here's a python script to patch the binary to remove the license checks, complete with 1337 ASCII art:

#/usr/bin/env python3

import sys
import hashlib

if len(sys.argv) != 2:
    exit("USAGE: {} path/to/sublime_text".format(sys.argv[0]))

sf = open(sys.argv[1], "rb")
sublime_bin = sf.read()
sf.close()

if hashlib.sha1(sublime_bin).hexdigest() != "536ca1f2ceee8746caeebad3af7acaad19cd42ea":
    exit("""\
ERROR: hash mismatch.

This crack is only intended for this version of sublime:
https://download.sublimetext.com/sublime_text_3_build_3143_x64.tar.bz2

If you want to try anyway, patch out this check at your own risk.""")

print("""\
  _____ _    _ ____  _      _____ __  __ ______ 
 / ____| |  | |  _ \| |    |_   _|  \/  |  ____|
| (___ | |  | | |_) | |      | | | \  / | |__   
 \___ \| |  | |  _ <| |      | | | |\/| |  __|  
 ____) | |__| | |_) | |____ _| |_| |  | | |____ 
|_____/ \____/|____/|______|_____|_|  |_|______|
                                CRACKED BY KYNAR
""")

# Note: The function at 0x419468 checks the key. 1=VALID

print("[+] Patching binary.")
sublime_bin = sublime_bin.replace(b"\x89\xe8\x74\x4c", b"\xff\xc0\xeb\x4c")

print("[+] Writing patch to disk.")
sf = open(sys.argv[1], "wb")
sf.write(sublime_bin)
sf.close()

print("[+] Done!")
print("NOTE: In order to complete activation, either create the file ~/.config/sublime-text-3/Local/License.sublime_license, or simply attempt to activate with an invalid license.")


If you want to check it out, use this exact version of sublime: https://download.sublimetext.com/sublime_text_3_build_3143_x64.tar.bz2
11 posts and 2 image replies omitted. Click reply to view.

 No.778

>all this stuff to get a fucking text editor towork
Or you can just download vim. Just Werks xd

 No.781

>>649
whats the point on this one
just use the one in wikileaks

—– BEGIN LICENSE —–
Affinity Computer Technology
10 User License
EA7E-909026
D64472BD FA040F1B 20F23C0D 114D57E4
AF4DDFDC A3FDDA29 00319FA1 91EE46D2
B3210738 54154723 F12511D6 950F839D
C5A83395 76EAEC5B FC25B644 9802A931
28A62A8C 9483EC49 E28E1A3B 997FA0FA
678ED4D3 2F4C2645 8E88274C 8AC599C2
F2D578D3 DF19037B 544F5304 18F3F196
6F1AC83E 2E1FCE1D BA74F528 1340A09F
—— END LICENSE ——

 No.782

>>781

You do understand that this key is from CIA and so they probably have some track of you this way. So if you're objective is to be private about your affair better not use that.

This key was posted on 4chan in the first "Vault 7" the day after wikileaks posted there series vault 7. The key isn't from wikileaks themself just to clarify for people that might use the key without knowing.

 No.783

>>781
As of the full release of sublime 3 about a month ago now, this key does not work

 No.785

>>660
do you mean getting free games from steam or cracking "owned" games so they can be played offline?



File: 1502228868537.jpg (4.21 MB, 3655x2427, Patient.jpg)

 No.506[Reply]

I got a quick question but it's more like a poll.
Python or Ruby?
8 posts and 1 image reply omitted. Click reply to view.

 No.632

Ruby all the way. Ruby is a very well designed language, the deeper you learn it, the more you see how everything connects, which is the opposite of most languages where the deeper you learn it the more you get caught up in idiosyncrasies.

Potentially the best scripting language would be Coffeescript, they got everything right. But its not a standalone language, its just a transpiler to Javascript.

 No.633

Ruby, It's Syntax is nicer but I believe Python has a larger community with bigger support.
( But that doesn't make up for how soykaf it feels to program in it )

 No.733

Greatly prefer Python, if only for the massive support and great libraries. The only time I use Ruby is to write Metasploit modules (ergo, not by choice), and I just don't care for how loose the language feels. Also it's slow.

 No.734

>>733
I thought Python was supported for Metasploit modules for the last few years? Maybe I was misinformed.

 No.735

>>734
You can hack stuff together with Python using msgrpc, but it's un-intuitive and being that Metasploit is already written in Ruby, using Ruby just makes sense to me in this case.



File: 1503389599089.jpg (78.22 KB, 910x480, 3.jpg)

 No.537[Reply]

want to get into robotics and machine learning.

physics and programming.

30yrs old, sole provider for large family, I need to cram relevant material and get to work.

eventually want to work as an engineer or programmer, but mainly interested in home projects ie. smart house, automated shopping list (organizes list by location in store), enhanced/simplified lawn care, and a bunch of tiny little bots that learn their environment and report….etc…

looking for self learner stack,
4 posts omitted. Click reply to view.

 No.645

>>644
math and programming aren't awful but i am definitely not fluent enough to think in these terms (I wont be thinking of working code or something whilst eating my bagel type thing) so i'd make a useless programmer as of right now. Right now, I would consider myself well introduced, so I could sit in on a conversation and have a decent idea of how things will work.

I've been getting frustrated because i haven't been building anything, I found a tutorial that is taking me through building an rpg with pygame. I have ideas for what i'd like it to develop into.

 No.653

>>645
quickest route from noob to machine learning programmer is probably:
>get good at python
>learn undergrad linear algebra
>read some tutorials on how machine learning works
>find a python lib that abstracts away the hard parts
…in that order. although honestly if you just want little scripts to make your life easier, step 1 is probably sufficient. like i said, proper machine learning is rather difficult. nobody's using it in their home automation. most people just connect raspberry pis to things and write little python scripts to interface whatever functionality you've come up with to the network. honestly seems like a pretty good way to start out, as long as those kinds of projects will hold your attention.

 No.664

File: 1505414824870.jpg (8.87 KB, 246x138, hqdefault.jpg)

>>653

thanx for the advice. This rpg tutorial is pretty cool
https://www.youtube.com/watch?v=RNS9WudlZoU

and I'm really interested in this type of stuff at >>649

software cracking

really interested in all the things python can do in terms of software and os manipulation, whatever those things may be. Any suggestions?

 No.688

there are bootcamps and online schools to learn this if you have that kind of money
https://www.switchup.org/research/best-data-science-bootcamps
https://lambdaschool.com
http://www.loonycorn.com/#/content

 No.693

>>688
Thanks :)



File: 1505680248778.jpg (76.89 KB, 960x960, 1501611989912.jpg)

 No.675[Reply]

When it comes to embedded programming and the advances in resources is it worth it to program in assembly or would it be better to just program in C?

 No.676

The usual advice is to do it in C and avoid assembly as long as you can. If you absolutely have to, it's still better to mix the two than to write the whole thing in assembly.

 No.679

Maintenance cost of a fully ASM system is higher than one in C. It requires more programmer-time to code and it's harder to grok fully.

Optimize stuff that needs it via inline ASM, but otherwise code it in C.

 No.682

>>676
>>679
I appreciate the help guys. Do any of you work with embedded programming?

 No.683

>>682
(679 here)
Not really. I've done some messing around as a hobbyist, but most of my recommendations are based around general systems development in C more so than anything which may apply to embedded development specifically.

Presumably, if your compilers don't support the architectures too well, you'll need to do more manual in-line optimizations. Perhaps there's an architecture somewhere badly-supported enough that it's best to just program it entirely in ASM. I mostly touch x86 and ARM systems, which have good optimizing C compilers.

 No.686

>>682
I had an internship at a place that did. My code didn't actually run on the embedded systems but I had to work with code that did.



File: 1504720440397.png (264.37 KB, 1024x878, 7d911f35e806c8a704746054bf….png)

 No.615[Reply]

http://archive.is/NF4Wq

>June 2017 was the first month that Python was the most visited tag on Stack Overflow within high-income nations. This included being the most visited tag within the US and the UK, and in the top 2 in almost all other high income nations (next to either Java or JavaScript). This is especially impressive because in 2012, it was less visited than any of the other 5 languages, and has grown by 2.5-fold in that time.

 No.620

File: 1504758765104.png (204.73 KB, 500x429, smug-gf.png)

>>615
>java/c++ consistently rises and falls with school year

 No.641

>>620
javascript seems to go up every summer.
Any idea why?

 No.654

>>620
hahahaha
You can also see the same trend for Python if you look at the slopes. All that this means is that more teachers are teaching Python, and more students are looking up answers and docs.

>>641
The total search queries decrease for other langs, increasing the ratio for JS search queries. These ratio graphs don't mean much without the data quantities.
Or maybe they realize Java doesn't work on the web and switch to JS.
The spikes in PHP around the new year days might be related to companies updating their websites for Christmas. This spike doesn't happen over the summer.



File: 1504330572008.png (858.76 KB, 585x1082, gbasmall2.png)

 No.591[Reply]

I'm writing a shell.

Struggling to decide between using assembly for linux interrupts or the posix C wrappers.

I know to be portable I should use C. But, do you think there is any reason to use assembly? I'm struggling mostly because I want to use assembly, but think I should use C.

 No.592

If you are working embedded systems I would worry about assembly but with advances in resources that is less of an issue. It is still good to at least know a little to do reverse engineering.

 No.597

>>591
shells being slow is basically expected, so i don't see what reason you would have for not using C? portability is definitely more important. if you want to put in extra time, do localised asm after you've already finished a portable C version (though make sure to check that it's actually more efficient too)

this sounds fun, though; what sorts of things weren't satisfying about other shells? or is it just for fun?

 No.599

File: 1504375444848.jpg (27.56 KB, 852x480, archlinux-wallpaper-1.jpg)

>>597
It's entirely just for fun. I'm not sure I can write something that will satisfy me enough to replace bash with it, but I sure am going to try.

It's going to be heavily integrated with lua. Right now I'm writing lua libraries in C to handle syscalls, termio, basically all the posix stuff, and then going to write the actuall shell in lua.

This way (in a fashion not entirely dissimilar to suckless.org software) the user will be able to edit the source of the shell itself in lua in order to customize it. The main goals of the project being customizability and easy script writting/integration. (I am not a fan of bash scripts)

So far, it's been really illuminating though. I'm starting to understand why things in bash are the way they are, once I've started trying to replace it.

 No.600

>>599
do you think you could share what things you've found so far, researching? am interested in what goes into this as well.

can't claim to be a fan of lua, but either way, good luck!

 No.605

File: 1504675023554.jpg (417.56 KB, 1300x1334, IMG_2838.JPG)

>>600
Just simple language design stuff really, like why variables in bash are prefixed with $, or why the if/test commands and looping facilities are as funky as they are in bash.

Havne't delved very deep into actual bash source yet. Don't plan on looking into the actual source of bash/zsh until I get a solid POSIX shell done, and can focus on speed and "correctness".



File: 1492638627031.png (456.85 KB, 512x512, elixir-on-the-web.png)

 No.21[Reply]

so have somewhat fallen for the elixir hype. written my way through 50-or-so
problems on exercism, project euler, et al. and think i'm in love.

the problem, though, is somehow moving past that and onto "real-world
applications". i'd really like to swap out the guts of my small personal
website, which currently runs on an awful mess of php generating script-less
html, to use elixir as a backend.

so the requirement, then is "respond to ssl-encrypted http requests by spitting
out generated html", with no worrying about scripts or databases or anything
else. what's the simplest way to go about this? most things seem to point at
Phoenix, but it looks to be some kind of giant stack, and it's introductory
guides all seem geared towards people who've used other "web frameworks"
before, which foreign terminology littered throughout.
5 posts omitted. Click reply to view.

 No.596

File: 1504369752622.jpg (249.84 KB, 600x1350, WHAT A HECK.jpg)

>>593
yes, see, this is what i meant about terminology. i've never used rails or any other web framework thing. i have no idea what a "view" is or what a "template" is in this context. so i look at that site and it gets me nowhere.

all i want to do is, over ssl, send html files and the files they reference, with the contents of the files calculated from the local filesystem and url arguments as the only inputs.

 No.598

>>596
ok, Im actually learning backend web development myself, so I cant say much about ssl. But on the second page of the guide "Adding Pages" it shows how to add a static page, in the middle it shows how to add a /hello static webpage. Sorry, I can only answer general questions about Phoenix, Im not good enough to get into specifics.

 No.601

>>598
well thanks anyways. will take a look again during next school break.

if you've made anything yourself, though, would be interested to see. and maybe that would be enough to get a feel for how things work, just a super simple working example.

 No.602

>>596
> yes, see, this is what i meant about terminology. i've never used rails or any other web framework thing. i have no idea what a "view" is or what a "template" is in this context. so i look at that site and it gets me nowhere.

So this comes from MVC frameworks, Modal, View, Controller.

The Modal is the translation layer to your datastore(like a database), it stores references to any long term stored vars for a controller.

The View is what renders the site the user views through templates.

The Controller ties the View and Modal together, it will normally handle the backend code.

Templates are basic html files that the views pass variables into and get rendered.

So in a simple blog, you would goto the home page, the home page controller would query the modals and get a list of blog entries, the controller would then feed the entries to the view, the view would reference a template and would render for the user.

Inside the template (pesudo code inc) you would do something like this:
{% foreach entry in posts %}
<li>
    <h2>
        <a href="{%- entry.url -%}">{%- entry.title -%}</a>
    </h2>
    <p>{% entry.shortpost %}</p>
</li>
{% end %}

 No.603

File: 1504404217068.jpg (337.13 KB, 635x999, T1r83ei3o1.jpg)

>>602
thank you so much!

don't feel quite so lost now



File: 1493611447345.png (66.48 KB, 597x255, wG51k7v.png)

 No.49[Reply]

Use whatever brace style you prefer.

But not this.

Don't do this.

Seek help instead of this.
19 posts omitted. Click reply to view.

 No.488

>>487
>set the color of brackets to the background color
And get weird ass bugs that you can't track because you can't see the missing or excessive brackets

 No.494

>>487
>>488
But here's a better idea. Write a script that takes indented text and inserts brackets around different levels of indentation. Should be a piece of cake.

 No.521

https://arxiv.org/abs/1703.01192
>This paper is written for programmers around the world. We hope by freely sharing a powerful new discovery, we might inspire you, dear programmer, to create new tools and languages, so that we all may experience a quantum leap in programming productivity.
>We include a Visual Abstract to succinctly display the problem and discovery. Then we describe the problem–the abstract syntax tree (AST)–and introduce the novel solution we discovered: a new family of 2D programming languages that align source code with geometric trees and remove the AST. Then we make some predictions and conclude with a plea to steal this idea.

 No.522

>>521
So Lisp with significant white-space?

 No.523

File: 1502628098911.jpg (10.42 KB, 210x240, DGRXGY6UQAA9uhv.jpg)

>>56
Aaaahhh.
No it isn't dark is better.
Oooohhhh I'm so mad.



File: 1496834772752.jpeg (6.4 KB, 200x200, tails.jpeg)

 No.184[Reply]

Hi Lainchan

I've recently became interested in learning C. I've read through some pdfs I've found online and I think I'm ready to start compiling. What is a good compiler to use on Tails 2.12 and how does one go about installing it via Terminal?
3 posts and 1 image reply omitted. Click reply to view.

 No.188

>>187
Tails is not meant to be extended by more programs, nor usable in everyday usage.
If you insist on tails, you could build your own tails images.
But keep in mind that the torproject designed Tails carefully, to prevent the installed programs to give away your Identity.
The next problem is that you need to secure the computer, you would build your own version of Tails…
I hope it is clear that you do not want to do this.

1. https://qubes-os.org/ The better option, if you have the Hardware. 16GB RAM and an SSD really are useful.
2. Subgraph OS could be worth a shot. It is pretty fresh (that's bad), but promising.
3. plain Debian + Tor Browser should do nicely too, just pay attention and learn more on Linux.

 No.194

>>188
Is it possible to run qubes off a thumbdrive?

 No.195

For C and Unix, I'd probably recommend FreeBSD. It comes with a compiler and everything you need in the default install. Useful tools like ctags, yacc, lex, and so on
Maybe OpenBSD though: it comes with X in the default install, unlike FreeBSD.

 No.197

>>194
No, take a closer look at the OS (such as reading up on it from the website) to get some real understanding. Tails is fully designed to work off of a usb or cd, qubes is fully designed to work on your computer as a main os.

 No.493

>>194
yes. use Whonix with it too



File: 1497361068817.png (3.92 MB, 1920x1080, 0bd40fb3bdf8ebfc872151479c….png)

 No.221[Reply]

Just out of curiousity, do y'all not like frontend development? I'm mostly a backend developer myself, but to me being good at frontend just seems like something that could be immensely fun and rewarding. Does it not have a lot of favor here because it isn't quite as science-y as backend programming can be?
6 posts omitted. Click reply to view.

 No.300

>>225
You desire for the web to be 100% blogs? That's pretty fucking horrifying. I'm actually enjoying the web being a place for apps that I don't have to store long-term to use once and throw away. I just wish there weren't so many megacorps fucking things up so that the web can be more friendly for dipsoykafs on facebook.

 No.430

I try to stay away from it because spending two weeks trying to make somebody happy about the color of a button on an internal report form was hard on my sanity every time (FUCK YOU JUST PRESS ENTER). I've escaped BI and trying my damnedest not to go back to that soykaf

 No.431

>>221
Some do, but it requires some basic understanding of design that is disconnected with STEM. So it's rare to find a decent front end dev that isn't a dirty hipster and actually knows how to deal with people as well.

 No.432

>>238
It seems to me that few people have worse taste than 'designers'.
I wouldnt trust anyone who can talk to me for more than two minutes about fonts to 'design' anything.

 No.483

>>221
I think because it involves style and design instead of technical work, which is just a matter of preference but if you like programming you'd probably prefer the latter. It's also a big mess to get everything looking nice, responsive, interactive, etc. whilst taking into account that people might have JS disabled, page needs to load quickly, etc.



Delete Post [ ]
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]
[ Catalog ]