#💽Programming Chat v2
1 messages · Page 4 of 1
or am i schizo
?
ur using postfix for your mailserver right
what do you think this is 😭
who in their right mind
i thought that was something like a.exe
lets see
whats .adb
@spare quartz check your terminal now
yeah I have 100ms delays
can you set up a server on your end and i try
uh ok
set it to 0 ms
@spare quartz only issue is that my university has a firewall
I think 0ms is too fast lol
hold on whats this
yeah looks like the servers handling it just fine
whats what
the thing you sent
a log
the connections
oh okay um
do i like need to add anything else to my command cause its still refusing to connect lmfao
telnet javart.zip 25
this is all you need
if it doesnt work, a firewall might be blocking it
i sure know its not my firewalls cause my pcs firewall is off and the ip itself is DMZ'd
you're allowed to scan anyone what
apparently its illegal
have you updated your indexes
what
sudo apt update
so aggressive
@spare quartz connect to my IP on port 6969
u don't have my ip tho
give me your ip 
i dont have your ip
laoo
I literally connected to you a bajillion times
what part of 3 nats dont you understand old man
modem/router -> router -> windows
windows <-> wsl
smh
43536-943
wdym
I sent it to you
ughhh i love networking i wish we did something like this in school
not fucking
EXCEL
im prob gonna download ubuntu 24.04 for dual booting
i could do fedora
i would if roblox had official support for it
yeah that would turn me over immediately
apparently it works just fine in a opengl passthrough vm tho
but the kvm stuff that has opengl passthrough gives me an error every step of the way lmao
with GNAT.Sockets; use GNAT.Sockets;
with Ada.Characters.Latin_1; use Ada.Characters.Latin_1;
procedure Tcpspammer is
Client : Socket_Type;
Address : Sock_Addr_Type;
Channel : Stream_Access;
begin
Create_Socket (Client);
-- IP REDACTED
Address.Addr := Inet_Addr ("IP REDACTED");
Address.Port := 6969;
Connect_Socket (Client, Address);
Channel := Stream (Client);
loop
String'Write (Channel, ":3" & LF);
end loop;
end Tcpspammer;
superior version of this
actually
hmm how do i take in console input in ada
hmm theoretical question
how would you scan the network that you're currently on
like let's say uhhh what would be a good example
like school or work network let's say
Google: what is my ip
nmap <ip>
umm
well thats just cheating since thats all accessible to you
wait but you would see everything
oh its just the ports
whats the tool that gives all the devices and shit
now in program form!!
i think thatll work on any linux system i have no idea
i am not running that
trust
oh crap its still pinging the aera port
lemme just get line that
there we go
i suppose
hmm
oh so you made a ddos tool
now make it be impossible to see in the background, and connect to a master server that tells it what targets to load test
😭
Sober
it actually works quite well
oh?
i'll give it a try
i'm cleaning out my boot options because there's so many unused ones
ooo
oh its just a android emulator
why cant you use a normal one
wow and you can only install it through flatpak too
Sober is unfortunately closed-source. This could change in the future.
hahhahhaha
that was my reaction upon seeing it
so dumb
I would not be surprised if its a compiled python script that downloads a normal emulator then runs roblox there
The remote 'sober', referred to by 'org.vinegarhq.Sober' at location https://sober.vinegarhq.org/repo/ contains additional applications.
oh it only works with gnome too
it requires you to use gnome, crazy
I thought that would be like some wine extension that just magically worked but nah its a android emulator
lol as if
aera is a bad person!!
though
im surprised my code worked first try
hold on thats an old file
there we are
who is the one spamming my console with :3 while refusing to get spammed with "FUCK YOY!!!"
YOU STARTED IT
i get to sit nice in comfy in my regulated console
while you get flooded in your rustlet
I can add flood protection too...
try me.
programmning chat to malware center transformation
okay well. cheater.
i have to deal with multiple threads .
port
nice
but yeah ip/port is the same
done spammng
guys wats a script
hi taffy
try one more time atp
frogot 🐸
WHAT
uh
how is it still spamming
im assuming you turned it off considering all threads shut down
i did it
WHY DOE SIT NOT
AAA
do I need to arc it
@spare quartz can you try it again
I don't think LazyLock<Arc<...>> will be correct though
nope
@spare quartz what about now
YAY FINALLY
holy hell
ok listen
what'd you do
I tried a
const INPUT_LOCK: LazyLock<Mutex<HashSet<String>>>>
first
but it seemed to maybe give a new hash set out every time it was called
so in the end I made an Arc<Mutex<HashSet<String>>>> in main() and passed that to each thread
put a function in a PO (essentially mutex) and put the value in a set
if it returned false for "already there", dont print
else print
this is like a top-level declaration thing
you can only have const at top level
and const have to be there at compile time
which is what the LazyLock is for (basically saying let me create this at runtime)
const is different from let (no mut)
the C analog is like
const int my_int = 5; // const in rust
int main(void) {
// ...
}
that's what I mean by top level
top level is a nearly universal thing i know what you mean
thats the same way its done in kotlin
(kotlin can also have consts in companion objects, too, but,)
the outermost type can't be mutable
but you can use something like a Mutex that allows for inner mutability
But the value inside has to be initialized at compile time
@spare quartz mind opening your mail server for like 5 seconds i wanna see if this worked or nah
ok lets try
bro
@spare quartz did you try turning it off and then on again
because
@spare quartz try again I wanna see if this works
this will be the last time I swear
oh my god
oh lol it panicked
gerouhejsrgad
that reminds me I need to setup a mail server
my ISP doesn't block the ports for one
@spare quartz i asked someone else and they too cant connect to it 😭
croatian internet
bro i called their tech support the other day and they rejected my call because i didn't top up my account balance
because of the uh block they imposed on my cdn
ok i just turned off my router's internal firewall
gotta reboot brb
croatia's best ISP
what am i even looking at
wtf is unifi
oh my fucking go
d
i will
fucking kill myself
@timid quartz THERS AN OPTION HIDDEN AWAY IN DEVELOPER MODE WHICH IS SO HARD TO GET TO
mm is this even it idk
lol!
wha
this looks liek
whats the word
enterprise typa shit not home network 💀
why in god's name would you pay for this
because it is so fucking cool and nice to have
have you seen my rack astro
44 core 512 GB of ram
😀
so in proxmox I have 88 threads
you know guardsman can run with 1 gb ram and 1 core right,,,,
yes but
soon what
oh I didn't

so
let me get this straight
you bought a whole ass server
just so you can run guardsman
then what in god's name do you run on that
no
so
remind me what the difference is again
modem is what coax/fiber goes into to split out and give public ip's to
router gives the private ips
because it is really good
most people do
dude
astro I have spent
like
3k for the server and the unifi stuff lmfao
oml
oracle one?
thats gonna be the public facing one
like
it will be a service
you create an account and manage it through that
or self host
so like
people who cant be asked to host servers and shit can just create a whole ass guardsman instance
if im getting that right?
yeah
we have a free tier and paid
free has less features (we haven't planned on what less)
paid has all
then there is self host that just has all with no pay since they are hosting it themselves
interesting
what's it like now
well i mean give me the license name so i can like look it up, my license knowledge ends at the mit license
GNU Affero General Public License v3.0
a lot
except mit being 2 paragraphs and this being 200
GNU Affero General Public License v3 (AGPL-3.0) summarized/explained in plain English.
mrrp
omg i always wanted to ask this question
what if they dont
like for anything under this license
we are able to sue
do you sue them
the what
i was more laughing at
like ok lets take this for example uh
you force x to open source their shit for whatever reason
they dont do it for whatever reason, who tf goes to court 😭
if its american that sorta makes sense but take me for example, or anyone else from non-america who will use guardsman
not directly to court lmao
elon was literally forced to buy twitter by legal action
ICANN?
oh icann
a domain provider can be contacted for legal action yes
yeah
its in your WHOIS
yeah
yup
so like in other words we have a shit ton more rights
I KNOW MY RIGHTS OFFICER!!!
release when!!!
AC 24
oo
that is the official release date
ughareuhersg
I gotta move to toml on the discord side
yeah we finally ditched env's
yes
alr gonna restart my router and try
but im on ubuntu rn

does it just hang
no it just
mine hangs lol
did you put 25
I am using my guardsman dev vm because I didn't want to do this on my other ones lmfao
guh
yeah ik
do you have nmap
if you do can you like nmap javart.zip and see what the status of port 25 is
for me it says closed
wtf is filtered
firewall is supressing a response
thats not my problem
my firewall is off and DMZ'd
uhh
not sure if it is my router firewall or dnf
im pretty sure dnf is a linux thing
wtf is firewalld
i dont even have it installed
firewall daemon
does the name not tell you enough
huh
why is it
I wonder if I can just shut off the firewall on my router
(can only go well)
what now 
yall are going thru a lot of trouble to talk to a mail server you wont have access to like, tomorrow
ben i was looking at the unifi router
that reminds me of the time beagle said "anything can be a tampon if you're brave enough"
dawg what
FYM WHAT
I love how I don't have to restart my router now to update settings
oh thats
not what I have
I have this
and this
that's a router?? 
this is
buh
i mean they have interesting stuff but not nearly interesting enough for me to give them my (non existant) money
v stands for..
oh
heh yk whats funny
where i live i dont have a cable that goes into my modem and then that brings it wifi no no
i have a SIM CARD
that goes into the router which then supplies internet

I am not in college yet so I don't have to worry
nice
that's neat
or router or whatever
me personally i dont want to invest into this typa stuff just yet because
well you said yourself the rqupment is expensive as shit and on top of that
add monthly charges for the software (what is it even, me saying hunders of bucks earlier was just me blabbering) and not to mention electricity
its all free
the unifi software is free??
yeah
you only pay for the hardware
wdym
if you dont have the hardware, having the software is pointless
and if you dont have the software the hardware won't really function that well
uhhh
im pretty sure you can just download their OS to a vm or pc
and it works fine to connect APs
and other stuff
oh so
the word software is technically wrong
you need to download OS to control your local network?
only on the device
that everything is going through
since it will dedicate the router
oh
micro sd card must have atleast 128 gigabyte storage 🤣
@spare quartz i'm starting to mess around with telnet a bit more (after connecting to some goofy public ones), but i've been banging my head against a wall for like an hour
i'm not entirely sure what i need to do right now, any pointers?
i am heavily invested now.
No
Aside from calling your ISP about it (assuming you’re still on the same problem)
i meant hosting it locally
(i am NOT going to mess with it on my prod server)
Hosting what locally?
Just download postfix or something
already done
Good luck
WYM GOOD LUCK
is it possible to like transmit messages between clients (person a and b) so it's visible in the shell instead of the mbox
i think thats what postfix calls it
That’s a feature that was in the first version of SMTP
it’s deprecated
If your mailing server supports it..?
i thought mail server == smtp server?
yes
your SMTP server needs to support the command
but I made that mailing server since generally it’s not just SMTP
i mean if im using postfix for example, is there a config where i can configure this?
i know postfix has like /etc/postfix/main.cf or something like that, but nothing interesting inside that
i dont use postfix so i cant tell you
thats why i said this
you just do it in plain ada??
im pretty sure partially why im writing this is cause years ago when i did it was frustrating
i see
well i mean i'd love to do it in JS/TS, but i don't even know if there are any packages for that
or if js can even do jobs like this
do you know of any packages?
of course it can
it just depends on where you want to start
- write the protocol yourself
- use a premade library for that
i mean i'd like to use a premade library first and then when i get a proficient grasp of how the entire protocol works, then maybe i can start doing it manually myself
but, do you know any libraries? the ones i've seen were only for sending mail, and therefore didn't support bidirectional communication
Nodemailer is a module for Node.js to send emails
you didnt look hard enough then
It seems that half of comp.lang.ada consists of professionals from the aerospace and embedded systems industry and the other half are crackpots who want to create a Caesar cipher plus spam. It always looked like a weird community to me (but that has indirectly to do with how Adacore conduct their business).
NOTE for future self
contents of Unbounded_String are void when returning the value in an access
(machine address changes)
@spare quartz rust or zig
for?
Was thinking of doing a BitTorrent impl
id say rust
forgot to make data work oops
tls done
in total: 2 hours, 23 minutes to do all basic smtp functions!!
rewriting fs rn, ill tell you when i can
oh okay
but to give you a little preview
mf made SWAKS 2
:3
BitTorrent impl would be neat
And maybe a telnet impl that will allow you to initiate TLS mid-connection
so STARTTLS
Probably
are you just inventing ssh 😭
Either telnet or netcat
Well ssh is just a shell
Telnet you can talk with servers directly
But telnet has no TLS support so you either have to find something that doesn’t use it or use like openssl s_client
BINARYMIME is broken so i gotta fix that
but this should make DATA write to fs again
(technically enough for a mail server)
oh yeah another TODO for the future
automatic NSLOOKUP so the email server doesnt require the domain be compiled into the program
@spare quartz if you’re able to open it now I can run this thing rq
DATA is corrupted when writing to file so gimme a minute
@spare quartz can you give me an email i can send stuff to with telnet i need to try something
i only have gmail so that wont work for testing
lemme just test this command
perfect
did yoy get anything
well i dont think you did because my dumbass FORGOT to implement email sending one sec
no :<
tell me when to check im gonna play satisfactory now
alr
wh
@spare quartz any idea why the recipient email is.. this
https://cdn.astrohweston.xyz/u/988399e9-7754-4a79-9e03-dada3e5936d2.png
im reffering to the m\b
¯_(ツ)_/¯

do I look like an smtp dev to you
YES
uhh
do you reckon this could be a firewall issue
because after all it IS windows
gonna switch to linux rq and try
whats the address start with
its an actual address not 127.0.01
not 192.168.whatever
uh
let me chekc
LOL this is funny i have to run my program with sudo
like sudo node .
@spare quartz im on linux now and like it went through APPARENTLY
can you check
as for my ip it starts with 95
yes
i just got a timeout error uhh
im assuming that's because your server didnt send a response
(for the previous one, im still writing the new one)
servers still working so not a timeout
now?
hold on i just restarted it
no
bro
wtf
??
oh um ir might be
@spare quartz would you be so kind to change your ports from 25 to anything else 
@spare quartz u alive?
tell me whart poeryt
yeds
Anything below 1000 is reserved
Can u open non-TLS on 25 
i set it to 43674
alr
lemme just port forward that
i havent opened it yet
b
@timid quartz @full berry 43674 is open
nothing on [email protected]
what'd you do
check [email protected]
p.s. i think theres a bug where if a mailbox exists it crashes the connection
can you try sending that mail twice
me?
aera
Give me 30 seconds
oh
EHLO smtp.astrohweston.xyz
MAIL FROM:[email protected]
RCPT TO:[email protected]
DATA
Just so i dont have to write the smae thing over and over
@spare quartz try 213421348z821394712893
check test
aera what are you doing exactly
you'll fit right in
did it again @spare quartz
@timid quartz you
@full berry
although I had to change that code slightly
oh you're using
a package to send mail
okok i see
@spare quartz did you get an email from like
[email protected] on your test email
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
@spare quartz i just send an email to both of your inboxes
personally my code is not erroring
const nodemailer = require('nodemailer');
let transporter = nodemailer.createTransport({
host: "smtp.astrohweston.xyz",
port: 27,
secure: false,
sendmail: true,
});
transporter.sendMail({
from: '[email protected]',
to: '[email protected]',
subject: 'Message',
text: 'I hope this message gets delivered!'
}, (err, info) => {
console.log('great job', info.envelope);
console.log('greater job', info.messageId);
console.log('fuck yourself', err)
});
but idk anymore this is the simplest shit i could come up with (i stole it from the docs)
there is no connection or inbox, and you shouldnt send to meower
i've tried test too
and wdym there is no connection or inbox
you have not made a connection to my server
i dont think i need an inbox as im not really the one receiving mail
is the host javart.zip or smtp.javart.zip
both
both
wdym both
@javart.zip -> smtp.javart.zip
javart.zip
smtp.javart.zip
wh
@spare quartz were you planning to keep this running or are you gonna be done with it in a few days
Also if you leave it up are you gonna require TLS
i need to keep it running for an email im gonna get soon
yes
im pretty sure thats for submissions only
supposed to have the sender and whatever
thats not nessasary
i just didnt choose to put that anywhere
the MAIL FROM and RCPT TO are things i dont need to put anywhere
oh ok
is it running
now it is
oh
it's just hanging
changed hte ports
to wjhat
there i set it back to 43674
THERE we go
it broke again
what
there
it failed againnn
bro what is wrong with nodemailer
done
do it 3 more times
you already have rust tls
ugghh
another error
@full berry 4 more times, again
cant rn
oh okay
doooing one more stress test and i think this is ready for use as a real server
(it is going to explode)
i asked someone to send 3 emails each with 3 recipients at me with variable attachments so
i dunno
uhhh
why would I write my entire own lib for a stupid spam thing
think of the experriencee
I have better things to be doing!!!
like





