[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
ITT we share our small/toy/single purpose programs Bumping
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 63
Thread images: 8
File: Screenshot_2016-02-27_20-50-12.png (92 KB, 724x459) Image search: [Google]
Screenshot_2016-02-27_20-50-12.png
92 KB, 724x459
ITT we share our small/toy/single purpose programs

Bumping with mine
It searches for a given open port across random IPs
>http://pastebin.com/BhAaKcwX
>>
>>53211030
Neat!
>>
>>53211030
You can post anything
Here's a little program i made to rip garfield comic strips from the website
>http://pastebin.com/4jPqbUKZ
>>
That's a nice start but you gotta do something after you connect.
>>
>>53211030
ever heard of
>nmap
>shodan
>masscan
?
>>
>>53211030
https://github.com/altbdoor/php-nyaa-archiver
>>
>>53211212
Its just a toy as i said, everyone is free to add code that does something after connecting.

>>53211249
Well but diy is fun
>>
>>53211261
I've also made one of those, except mine saved the info into a SQLite database.
>>
>>53211030
>random IPs
Well, I get that this was probably a fun exercise, but the question remains: for what purpose?
>>
>>53211325
Hamuko, is that you?
>>
>>53211333
Yes.
>>
>>53211335
Please be my gf
>>
>>53211327
Its like digging for treasure
You randomly dig and dig until you hit something solid, in this case, an open port
After that its up to you, you can send data to it, receive data, or whatever you want
>>
>>53211030
This is pretty cool and optimized
Why don't you just feed it ranges though?
You could simply search through vps ranges for optimal results
>>
>>53211335
nyaamagnet was a large inspiration while I was working on it. The error messages for invalid/deleted entries were really helpful, since nyaa keeps dying every now and then. Also, for pointing out to save magnets instead of torrents.
Thank you very much.
>>
>>53211030
>connect scanning
It's shit.
>>
https://gist.github.com/CounterPillow/ef8dcf80621cd4ccf9c3

Small bash script I use in connection with incrond to optimise all images I save into a certain directory. I also have a .desktop file so I can right-click on an image and choose to optimise it in Dolphin.

If your system doesn't have user buses for dbus then you'll need to get the session bus address differently.
>>
>>53211435
Im trying to learn raw sockets but frankly no book covers that, ever. I learned everything i have until now by beej's network guide, but that doesn't teach anything about raw sockets either.

Man pages aren't any good.
>>
>>53211030
>2016 not scanning the hohle ipv4 adress space in one night
>>
>>53211030
sick dude, hope you dont mind but going to borrow the idea to throw something together myself. been a webdev for a couple years and while im looking for a new job, i need to make it look like i program in my free-time
inb4 webdev, i know, i want to move into something that is more functional/back-end. but goddamn is ruby a fun language.
>>
>>53211589
>webplumber
lmao faggot
>>
>>53211249

this
>>
>>53211589
>ruby
kek
>>
https://gist.github.com/CounterPillow/5b8fc6ed7b21d2df88e9
Small C snippet using glfw to get video modes of your monitor.
>>
File: Képkivágás.png (13 KB, 582x165) Image search: [Google]
Képkivágás.png
13 KB, 582x165
>>53211030
Thanks Works like charm
i wonder if my ISP is going to fuck me over if i do this for days
>>
>>53211792
They wont, if you use things like masscan/zmap over 3 times a day then they probably will
>>
>>53211204
having a bit of trouble compiling this. any tips?
>>
>>53211792
For my masscaning consumer ISP networks have been complain free.
>>
>>53211792
why sudo?
just do
[code}
sudo chmod u+x ip
./ip 80
[/code]
>>
>>53211030
Have you ever hit something interesting with this?
>>
>>53211832
Windows or non unix system?
Would help if you could post the compile errors

>>53211864
A couple of times actually, once it was a russian ftp server, once it was some guy's IP camera, but i couldn't guess the password, it was non default
Let it run overnight
>>
>>53211847
i wasnt sure if it works with or without root...
because it took several start/stops to get some output(sometimes it just writes Starting! and nothing after)
>>
>>53211030
hay op, im learning C myself, having a little trouble understanding that...are you trying to connect to any/all ports at a given ip ? cant tell really
>>
Found this pretty handy from time to time, lets you search svn logs
>http://pastebin.com/QTPAj0n6
>>
Another handy one if you find yourself on a server without telnet installed and you need to check a remote port
>http://pastebin.com/sGg6BGr0
>>
File: Képkivágás.png (12 KB, 336x470) Image search: [Google]
Képkivágás.png
12 KB, 336x470
>>53211030
Its a nice program but sometimes it doesnt start the scanning
see screenshot i wait and nothing happens
but sometimes it starts instantly
pls halp
>>
>>53212023
Look at your process list, there should be multiple instances of the program open
Kill them all, and then start using it again
>>
File: Képkivágás.png (3 KB, 425x53) Image search: [Google]
Képkivágás.png
3 KB, 425x53
>>53212053
sadly this isnt the solution in my case(no instance running)
>>
Did this last night when I was bored. It suggests you a movie from the imdb top 250 to watch.

http://pastie.org/private/rmtw8kwsh01eq30be9cqg
>>
File: pls.jpg (136 KB, 768x758) Image search: [Google]
pls.jpg
136 KB, 768x758
Bamp
>>
>>53211898
Do you even understand the source code?
Could have gone bad for you.
>>
This walks through every directory (starting from the execution directory) and writes the relative paths to every file and their size to a file.

import os
import math

dirpath = os.path.dirname(os.path.realpath(__file__))
dirlen = len(dirpath) + 1

with open("filenames.txt", "w") as a:
a.write(str("Contents of "+dirpath) + os.linesep + os.linesep)
for path, subdirs, files in os.walk(dirpath):
for filename in files:
f = os.path.join(path, filename)
fsz = os.stat(f).st_size
fszstr = ""
if fsz > 1073741824:
fszstr = "%.2f" % float(fsz/1073741824) + " GB"
elif fsz > 1048576:
fszstr = "%.2f" % float(fsz/1048576) + " MB"
elif fsz > 1024:
fszstr = "%.2f" % float(fsz/1000) + " KB"
else:
fszstr = str(fsz) + " bytes"
a.write(str(f)[dirlen:] + "\t\t\t" + fszstr + os.linesep)
>>
>>53213960
I know you wrote this as an exercise but you might want to get 'ncdu' which does exactly this
>>
>>53212190

Can you make one but with TSPDT's top 1000 instead? IMDb sucks.
>>
File: 4chpython.jpg (115 KB, 969x844) Image search: [Google]
4chpython.jpg
115 KB, 969x844
Just a python script that pulls down posts and replies. Did it a while ago and never bothered to get images downloaded properly or set up replies.

At the moment it's shitting itself when it comes across weird strings
>>
>>53214055
I'm running winblows (don't judge). I just needed a quick and dirty record of some files on an external hard drive.
>>
>>53211030
>2^11 - 2^5
>not knowing port scanning is illegal and against your ISP's ToS
>>
>>53214326
did you do tha ascii 4chan by hand or did you use a script / program?
>>
>>53214511
I just used an online script
>>
>Not threaded

Why?

>C instead of C++

Why?
>>
>>53214332
cmd.exe "dir/s > C:\printout.txt"
>>
masscan is great there is no way to reinvent the wheel
>>
>>53214151
>TSPDT's top 1000 instead?

Yeh, I could. I'll do that in two hours or so.
>>
File: 1443971594816.gif (103 KB, 603x785) Image search: [Google]
1443971594816.gif
103 KB, 603x785
>>53214972
>>
>>53214633
>using sepples
>any year
>>
>>53213960

Now do a tree clone without using os.walk (as an exercise). Did that a while ago, it's fun.

>captcha : Select all images with trees.
Spooky
>>
>>53211030
https://github.com/alex47/LIG/releases
for best-performance combo posting
>>
>>53211030
https://bitbucket.org/cparich/jpath
>>
>>53214151

That site was a nightmare to scrape. Fucking horrendous. The code is a bit ugly (there is a magic number in there) but it will do for now.

http://pastie.org/private/rpqurcv3uxuw5y9wxb7o9w
>>
https://github.com/sora-chan/bklg
Keeps track of my anime.
>>
>>53211030
There was a really basic web app called IPSpace some years ago that would calculate ranges and subnets. That could be a pretty decent addon for it with some tuning.

But I'm not a developer, short of doing stupid shit in powershell...
>>
>>53215734
this is great I thought I would have to do this with MS paint
>>
>>53211030
why is only port 23 open for those? and are those ips just fabricated or real (assuming not all ipv4 adresses are being used)?
Thread replies: 63
Thread images: 8

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.