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
network
Programming Python

File Transfer in Python 3

March 28, 2022 No Comments

In this post, we’ll check out file transfer in Python 3 with file size verification check.

In many Python scripts you’ll come across the need for sending and receiving files over the network, so I decided to make this tutorial for a simple yet stable set of scripts to implement whenever needed.

We’ll only use standard Python libraries included with a default installation: socket, time, os and sys.

One nice little detail we’ll implement is file size verification, so that the receiving party can be sure they received the file with the exact amount of bytes the sender intended.

Let’s check it out!

Continue reading
Reading time: 2 min
Share:
Written by: codeboss
Linux System Windows

Apache, MySQL & PHP Setup (Win/Linux) for SQL Injection Labs

March 22, 2022 1 Comment

Hello guys.

In this post we’ll take a look at how to setup Apache, MySQL and PHP on Windows and Linux. This setup is mainly for a series of SQL injection labs that I’ll be posting in the upcoming days (you’ll find the link for the HTML/PHP below). For this reason, it will be a development setup not a secure one. 😉

What will be covered:

  • Installation of Apache, MySQL and PHP
  • Configuration of each service where needed
  • Creating MySQL user, database and grant privileges
  • Download HTML/PHP pages and configure it properly

Since I’ll be doing a series of SQL injection posts, I figured it would make sense to create this post given that understanding the installation process, database users/permissions all contribute to the vulnerability.

With that said, let’s begin!

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

Introduction to Scapy (Python)

June 10, 2021 1 Comment

What’s up guys!

Hope y’all been alright lately. I’ve been studying a bunch as part of a certification package I was awarded – focused on network security. While I’m excited to do it and learn a lot of cool stuff, it’s also draining pretty much all my free time.

While I’ve been doing this certification I’ve had to dive deep into a lot of theory-oriented network stuff like frames, packets and all those meaningless terminologies. It’s so much theory that I had to install Scapy just to see some of these packets in action and get hands-on with the damn thing – I mean seriously if you’ve taken some of these certs you’re probably used to how dry and boring it gets just reading about protocols and not actually doing anything.

Anyway we are here to talk about Scapy today and not my boring life 🙂

What is Scapy?

To put it simply, its a packet sniffing and crafting program. There is a lot more you can do with it like decoding certain protocols and interacting with Wireshark captures among other cool things (see the documentation page).

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

Netcat Tricks for iPhone

April 29, 2020 No Comments

Whats up guys!

In this post we’ll take a look at 3 cool tricks using netcat on the iPhone.

Note that you will need a jailbroken device in order to follow along; alternatively, you can just use a laptop/desktop with netcat installed.

Using checkra1n jailbreak, this has become trivial for most devices.

Networking Tools for iPhone

In order to use a lot of the networking tools in the iPhone, you’ll need to download them from Cydia first.

Go under Terminal Support and choose a terminal of your choice.

I went ahead with NewTerm.

Then make sure you have netcat installed from Networking section.

That’s everything we’re going to need.

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