User:Federico/hackpact: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
= HackPackt reload = | |||
Apparently I coded a sonification of TCP, UDP and IPv4 data packages | |||
I used python and two library, one for make synth and the other for packet analisys | |||
from synthesizer import Player, Synthesizer, Waveform | |||
import pyshark | |||
Then define live player for the synths | |||
player = Player() | |||
player.open_stream() | |||
player1 = Player() | |||
player1.open_stream() | |||
synthesizer = Synthesizer(osc1_waveform=Waveform.square, osc1_volume=1.0, use_osc2=False) | |||
synthesizer1 = Synthesizer(osc1_waveform=Waveform.sine, osc1_volume=1.0, use_osc2=False) | |||
Define the interface to use, this case is the wireless one | |||
to check: | |||
* Linux | |||
iwconfig | |||
* Mac | |||
ifconfig | |||
networkInterface = "en0" | |||
Now define capture object on pyshark, for live reading of data packets | |||
capture = pyshark.LiveCapture(interface=networkInterface) | |||
Map the sound with the first value of the ip of source and reciver of every packet | |||
for packet in capture.sniff_continuously(): | |||
try: | |||
# get packet content | |||
protocol = packet.transport_layer # protocol type | |||
src_addr = packet.ip.src # source addressc | |||
src_port = packet[protocol].srcport # source port | |||
dst_addr = packet.ip.dst # destination address | |||
dst_port = packet[protocol].dstport # destination port | |||
# output packet info | |||
if src_addr[2] == '.': | |||
src_addr = int(src_addr[0:2]) | |||
else: | |||
src_freq = int(src_addr[0:3]) | |||
if dst_addr[2] == '.': | |||
dst_freq = int(dst_addr[0:2]) | |||
else: | |||
dst_freq = int(dst_addr[0:3]) | |||
print('Source:', src_addr, 'Reciver:', dst_addr) | |||
print('Source:', src_freq, 'Reciver:', dst_freq) | |||
# Here where the sound is | |||
player.play_wave(synthesizer.generate_constant_wave(src_freq, 1.0)) | |||
player.play_wave(synthesizer1.generate_constant_wave(dst_freq, 1.0)) | |||
except AttributeError as e: | |||
# ignore packets other than TCP, UDP and IPv4 | |||
pass | |||
= TextPact = | = TextPact = | ||
Latest revision as of 22:23, 13 October 2021
HackPackt reload
Apparently I coded a sonification of TCP, UDP and IPv4 data packages
I used python and two library, one for make synth and the other for packet analisys
from synthesizer import Player, Synthesizer, Waveform import pyshark
Then define live player for the synths
player = Player() player.open_stream() player1 = Player() player1.open_stream()
synthesizer = Synthesizer(osc1_waveform=Waveform.square, osc1_volume=1.0, use_osc2=False) synthesizer1 = Synthesizer(osc1_waveform=Waveform.sine, osc1_volume=1.0, use_osc2=False)
Define the interface to use, this case is the wireless one
to check:
- Linux
iwconfig
- Mac
ifconfig
networkInterface = "en0"
Now define capture object on pyshark, for live reading of data packets
capture = pyshark.LiveCapture(interface=networkInterface)
Map the sound with the first value of the ip of source and reciver of every packet
for packet in capture.sniff_continuously():
try: # get packet content protocol = packet.transport_layer # protocol type src_addr = packet.ip.src # source addressc src_port = packet[protocol].srcport # source port dst_addr = packet.ip.dst # destination address dst_port = packet[protocol].dstport # destination port
# output packet info
if src_addr[2] == '.': src_addr = int(src_addr[0:2]) else: src_freq = int(src_addr[0:3])
if dst_addr[2] == '.': dst_freq = int(dst_addr[0:2]) else: dst_freq = int(dst_addr[0:3]) print('Source:', src_addr, 'Reciver:', dst_addr) print('Source:', src_freq, 'Reciver:', dst_freq) # Here where the sound is player.play_wave(synthesizer.generate_constant_wave(src_freq, 1.0)) player.play_wave(synthesizer1.generate_constant_wave(dst_freq, 1.0))
except AttributeError as e: # ignore packets other than TCP, UDP and IPv4 pass
TextPact
In a sentence: I would like to track an overview for a possible cosmology of wireless media and propose detourning tool(s) to alterate the current hegemonic platform urbanism, online and offline.
Wireless media are covered, from my perception, of a kind of magic, full of dramaturgic cues:
Firstly, for a human deficit, the impossibility to watch with sightseen the exhange of data through wireless generates an almost imputable aura of mistery and I think, paradoxically, trust.
These tools have the capacity to effect physical reality at a distance, and the link to a telepathy desire is strong. Using our devices as natural extension of our body in the best cyber-tradition, from a communication point of view this desire of telepathy is fully commited.
When we commit with our devices with a wpa/2 connection an action, this creates a pack of data that flows in the air reaching the hardware, the router, then it reaches server(s) and datacenters around the globe through cables.
This generate a hidden traffic that paradoxically is in full sightseen.
A different kind of urbanism(s) is generated from every interaction and those wireless tools add an important layer of complexity.
The wifi doesn't fall frome the sky... but the gps yes
Media and medium are at the core of communication, every communication tool shapes in different way the knowledge' flow and consequently the power' flow.
It's not only the wifi, the cosmology of 'older' medium such as x-rays and radio can really suggests how the wireless way to distribute knowledge (in a very broad sense) generates and shapes superstructures and platforms.
Smoke signals, drums, flags, homing pigeons... outline a cosmology of wireless tools starting to investigate from ancient systems of wireless communication is aimed to understand how and why we arrived here and now with the media we use everyday.
The magical narration applicable on wireless could be "an alternative system of reality to Technic. While Technic attempts to capture the world through an 'absolute language', Magic centres its reconstruction of the world around the notion of the 'ineffable' that lies at the heart of existence." [About Technic and Magic of F. Campagna]
PastFacts: Recursive dilemmas in my head
- Centralization and standardization of knowledge and power
- Explain to my family that wifi doesn't fall from the sky
- think as a multitude:
- technology
- language
- knowledge
- investigative aesthetic as modus operandi
- case studies and fun-facts, i.e.:
- pigeons as wireless tool in different sauces
- the bees in Ca' dei Monti, the hill where is situated Habitat, move from their natural zones after the installation of a 4G antenna at the top of the hill
- the feeling of power watching the gps on food delivery app
- case studies and fun-facts, i.e.:
- fuckin' cookies
- Data as relational tool
- Attempting to document the future
- as a multisubjective speculative practice
HackPacks: Messing around with tools
- local wireless hotspots:
- around SI14
- !collective portfolio maker @ habitat
- web app gps-based developed:
- trying forensic wireless tools
- aircrack-ng
- DSTIKE hacker aesthetic
- scraping around:
- Just Eat UK bad reviews + the stupid and fake food picture scraped, making the platform naked
- and other stuff not really related to the topic
for Aquarium event
- out of my digital headspace
- use paper bookmarks to let people write data on them
- and let them send around
- == put them around in the space, especially in books
- and let them to modify them, trash them, hack them...
- interaction, hacking around!
Bonus
Vola via, pacchetto digitale Del tutto immateriale Di ampiezza e di frequenza Vola via su mari tropicali E laghi disseccati Giungla e ghiacciai Tuffati nei cavi dell'Atlantico Veloce come luce Poi lanciati nel vuoto Fly away, digital package Totally immaterial Of amplitude and frequency Fly away over tropical seas And dried lakes Jungle and glaciers Dive into the cables of the Atlantic Fast as light Then throw yourself into the void