How to read code written by other people

Examples of tools

(also good for code you wrote yourself more than a week ago)

🧵🧵🧵(0/9)
(1/9) Code beautifiers

Sometimes, simply putting the right indents, line breaks, and highlighting variables can go a long way toward making your code more readable.

#javascript beautifier.io
#php beautifytools.com/php-beautifier…
#python tutorialspoint.com/online_python_…
(2/9) Deobfuscators

Sometimes developers purposely make code unreadable with special tools - obfuscators (especially often in websites)

In such cases it is possible to use deobfuscators.

#javascript lelinhtinh.github.io/de4js/
#java javadeobfuscator.com
(3/9) Code explainers

This type of service simply translates code in a programming language into ordinary english language (in as much detail as possible)

Ex: explaincode.app
(4/9) "Code to flow chart"

Sometimes there are too many conditional statements in the code, so only a flowchart generator can help.

Ex: app.code2flow.com
(5/9) Code review tools

This type of tool will help identify the roughest code problems (like excessive complexity or large number of duplicates) to make it better as quickly as possible.

Ex (free for #opensource projects): codebeat.co deepsource.io
(6/9) "Code hint tools"

This type of tool just looks for syntax errors and various inconsistencies with technological standards in the code.

Ex: jshint.com
webhint.io
(5/9) Code review tools

This type of tool will help identify the roughest code problems (like excessive complexity or large number of duplicates) to make it better as quickly as possible.

Ex (free for #opensource projects): codebeat.co deepsource.io
(6/9) "Code hint tools"

This type of tool just looks for syntax errors and various inconsistencies with technological standards in the code.

Ex: jshint.com
webhint.io
(7/9) Online comments generators

These tools work much more crudely than Code Explanation or Code Hint, but they all help you quickly figure out which function/method is responsible for what.

#javascript smartcomments.github.io
#python pypi.org/project/docly/
(8/9) Compare two files

The automatic comparison comes in handy when you want to find differences between two different versions of code.

Files: w3docs.com/tools/code-dif…
Folders: devart.com/codecompare/
(9/9) Regular expression

If you need to find emails, nicknames or other "juicy" info in source code, you can use Regexp (there is no need to review their syntax, there are plenty of templates on the Internet)

Online: regexr.com
CLI: github.com/cipher387/grep…
In conclusion I would like to note once again that this article simply gives examples. All in all there are thousands of tools for automatic analysis of source code which combine various functions. Here is an example of such for #javascript:

@threader compile
@threadreaderapp unroll
@threadrip unroll
@PingThread unroll
@threadreaders unroll
@TurnipSocial save
@readwiseio save thread
@tresselapp save thread
@rattibha unroll

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Cyber Detective🇺🇦

Cyber Detective🇺🇦 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @cyb_detective

Mar 29
7 Old Excuses For Not Using #Linux

(and why they are not actual in 2022)

(1/9)🧵🧵🧵 Image
Excuse 1. Hard to install OS

Dozens of different distributions are available as Virtual Machines and you can try them in 5-15 minutes (taking into account the time to download, configure and run).

linuxvmimages.com

(and there are also ready-made Live USB images)
(2/9)🧵 Image
Excuse 2. Hard to install Apps

There are now app stores for Linux that allow you to quickly install all the essentials (office applications, messengers etc) just as quickly as you can in the App Store or Google Play.

Ex:
snapcraft.io
flathub.org

(3/9) Image
Read 10 tweets
Mar 28
9 good APIs (Application Programming Interfaces) for #OSINT

(FREE or partially FREE)

(1/12) 🧵🧵🧵 Image
Before I start listing, let me remind that you don't have to open a command line or write code to test the API. You can simply use one of the many online tools.

restninja.io
extendsclass.com/rest-client-on…
reqbin.com

(2/12) 🧵 Image
IP2WHOIS

FREE API returns creation date, updated date, expiration date, domain age, the contact information of the registrant (address, phone, email) and much more

ip2whois.com/developers-api

(3/12) 🧵 Image
Read 13 tweets
Mar 22
H1B1 Salary Database

The U.S. Department of Labor's official database, which contains information on the annual income of employees who came to work in the U.S. on H1B1 visas

h1bdata.info

#osint #database
Positions even remotely related to #osint are quite few. But you can find something related to intelligence in general. And, of course, there are many positions for analysts of various profiles.
The highest paying positions among H1B1 visa holders are in the medical field. In first place is a neurosurgeon with an average salary (data from more than 100 fillings) of $612,080

h1bdata.info/highestpaidjob…
Read 5 tweets
Mar 16
Open Source Intelligence (#osint) is based on the use of hundreds of open source tools. In my experience, the main problem of good #opensource tools is extremely LOW number of users.

In this thread I will tell how independent developers find their audience (free)🧵🧵⬇️ (1/14)
(2/14) Check how your product runs outside your computer.

For starters, try opening your Github repository at Gitpod.io (it's free online #Ubuntu).

This will show what the user will need to install to run
Ex: the Python modules to include in requirements.txt
(3/14) Test your product on different operating systems

Ideally, you should install several virtual machines on your computer. VM images can be found here:

Linux - osboxes.org

Windows (legal, free 90 days) - developer.microsoft.com/en-us/microsof…

MacOS - developer.apple.com/documentation/…
Read 15 tweets
Mar 4
If you go to Github today, you can see a lot of repositories to implement various "methods to fight Russians" like browser ddos attacks and traffic redirection
Now many people want to help Ukrainians somehow. In this 🧵, I'll tell you what are some constructive ways to do this
If you live in Europe, find a website dedicated to helping Ukrainian refugees in your country (if you don't have one yet, create one). Even if you don't have space in your home, you can help with transportation or services (ex: translation of documents)🧵
You can also offer your help to various international charities, which now invite people from all over the world to cooperate🧵🇺🇦

Read 12 tweets
Feb 22
How to work with torrent archives of hundreds of gigabytes if your computer is too weak for it?

One of the many possible ways to solve the problem.

🧵🧵🧵
Create a VM with a Linux server (ex Ubuntu) on one of the cloud hosting services (Google/Yandex Cloud, Azure, DigitalOcean).
1. Create a VM for a couple of days and delete it immediately (and then pay only a few dollars).
2. Use free trial periods and promo codes.
🧵1
Connect to VM via SSH

Install aria2 (lightweight multi-protocol & multi-source command-line download utilit - aria2.github.io)

Upload file with .torrent extension to your VM (use scp, curl/wget or aria2)

🧵🧵🧵2
Read 7 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(