CodeOnBy - In Between Bytes
  • Home
  • Programming
    • JavaScript
    • Python
  • System
    • Cross-platform
    • Linux
    • macOS
    • Windows
  • Gear
  • About Me
Home
Programming
    JavaScript
    Python
System
    Cross-platform
    Linux
    macOS
    Windows
Gear
About Me
CodeOnBy - In Between Bytes
  • Home
  • Programming
    • JavaScript
    • Python
  • System
    • Cross-platform
    • Linux
    • macOS
    • Windows
  • Gear
  • About Me
Browsing Tag
code
Data Recovery Python

Python for Data Recovery

May 7, 2022 1 Comment

What’s up yall!

In this post we’ll take a look at Python for data recovery.

We’ll be covering a script I made that reads through a disk (in this example, a USB) and checks for specific file signatures in an attempt to recover photos and images (.jpg) from said disk.

If you haven’t seen my previous post about data recovery using a hex editor, I highly recommend it since a lot of the knowledge from that post will be automated using this script.

I’ll also get into how you can use this script to search for other types of files later on… 😉

Let’s get into the tutorial!

Continue reading
Reading time: 4 min
Share:
Written by: codeboss
Programming Python

Split File into Byte Chunks in Python

March 12, 2022 No Comments

Whats up guys?

In this post we’ll take a look at a Python script to break a file (image, executable, whatever) into several chunks of raw bytes and another one to merge those chunks together and reassemble that file back.

Since I’ve been doing a cloud security certification, it mentioned a technique widely employed in cloud of storing chunks of files into different virtual machines for security purposes (kind of like a RAID setup).

That made me think: ah, this could be a cool Python script to code! Hence, this tutorial. 🙂

Each script is less than 20 lines of code and not difficult at all, just basic file manipulation of raw bytes.

In any case, I have made an introduction to files in Python to get you started – if you are new to programming and/or Python, check it out since it should be all that you need for this tutorial.

Continue reading
Reading time: 3 min
Share:
Written by: codeboss
Programming Python

Introduction to Files in Python 3

March 11, 2022 1 Comment

What’s going on guys?

In this post we’ll do a brief introduction into handling files in Python 3.

We’ll be looking at the following file operations:

  • Opening files for read mode
  • Opening files for write mode
  • Basic file operation functions
  • Reading files in binary mode

This isn’t necessarily an in-depth tutorial, just something to get you started.

Let’s begin!

Continue reading
Reading time: 3 min
Share:
Written by: codeboss
Programming Python

Port Scanner GUI in Python 3

February 24, 2021 1 Comment

Howdy!

In this post we’re going to take some code from a previous post ‘Port Scanner in Python 3‘ and converting it into a program with a graphical interface that you could run from a mobile device or desktop.

You can watch the video above to follow along with the programming. I am using PyDroid application for android to program and test out the code.

Mostly everything should be explained in the video, but if I missed anything just leave a comment below and I’ll definitely help you out. 😉

Continue reading
Reading time: 3 min
Share:
Written by: codeboss
Cross-platform Programming Python System

Port Scanner in Python 3 (pyDroid and iPhone)

April 21, 2020 1 Comment

Heyyy! How ya doing?

Finally I have some free time and able to make some more videos! Very excited to learn some more stuff and share it with you guys. 🙂

To start things off smoothly I decided to do a short Python script – a port scanner, which we’ll program in a few lines of code.

This is an idea suggested by a viewer, to do small projects using mobile devices (pyDroid on Android and vim text editor on jailbroken iPhone).

Once you figure out which device you’ll be using, lets get started…

Port Scanner Using Threads

It’s important to use threads for such a program to shorten run time. With that said, we’ll need the system, socket and threading modules.

Continue reading
Reading time: 1 min
Share:
Written by: codeboss
Page 1 of 41234»

Recent Posts

  • Python for Data Recovery
  • Data Recovery using Hex Editor
  • File Transfer in Python 3
  • Intro to SQL Injection (Lab #1)
  • Apache, MySQL & PHP Setup (Win/Linux) for SQL Injection Labs

Recent Comments

  • Brian on Brute-Force VeraCrypt Encryption
  • zhiftyDK on ARP Spoofing with Scapy
  • Alex on Python for Data Recovery
  • john on Data Recovery using Hex Editor
  • Someone1611 on Bind Shell in Python 3

About me

My name is Felipe! I’m a programmer from NY.

Blogs about coding, operating systems, network and security.

Hosting

© 2020 Copyright CodeOnBy // All rights reserved
In Between Bytes