[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]

/ipcam/ - IP Camera Exploration

DID EVERYONE GET V&?

Catalog

8chan Bitcoin address: 1NpQaXqmCBji6gfX8UgaQEmEstvVY7U32C
The next generation of Infinity is here (discussion) (contribute)
Name
Email
Subject
Comment *
File
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Embed
(replaces files and can be used instead)
Options
Password (For file and post deletion.)

Allowed file types:jpg, jpeg, gif, png, webm, mp4
Max filesize is 8 MB.
Max image dimensions are 10000 x 10000.
You may upload 5 per post.


/join #ipcam warmtires on Rizon. Read the rules, faggots.

File: 1436844625580.png (523.18 KB, 1915x915, 383:183, export_ipcam.png)

801c74 No.900

Hi there,

I'm a beginner in C but I tried to develop a software to export Ip cam from bruteforce.log (of Joe's file downloader) into a HTML file to get a screenshot of all the IP cam cracked … I sucessed but I would like to improve my code. I would like to delete all unreacheable Ip cam before creating HTML file but I don't know anything in sockets …

Here the code :

http://pastebin.com/sBJ9yatZ

For instance, my bruteforce.log :

http://pastebin.com/iL1QiqMc

Any help would be appreciate.

8ba72d No.901

Dude… Don't use C for this kind of stuff, it makes things way too complicated.

Regex was made for thing kind of thing.

This can literally be done in one line in Bash ( a very long one albeit ) and a couple of lines in Python

You've got a huge memory leak with 'url'

Just for fun I made it in bash

{ echo '<html><head><title>Export IP Cam</title></head><body>' ; cat bruteforce.log | nl | sed -n "s@\s*\([0-9]\+\)\s*\(\S\+\) - \([^:]\+\):\(.*\)@<div style='border:1px solid#ccc;padding:8px;margin-bottom:8px;'><img style='width:320px;' src='\2snapshot.cgi?user=\3\&pwd=\4'/><b>Source (\1):</b> \2, \3:\4</div>@p" ; echo '</body></html>' ; } > shit.html


8ba72d No.902

I missed the second part of your message but what you're asking could be easily accomplished with 'curl' in Bash and a piped while loop.


801c74 No.903

LOL, indeed, it easier …


8ba72d No.904

Come to the IRC channel (It's mentioned at the banner at the top)


801c74 No.905

i'm already there ;)




[Return][Go to top][Catalog][Post a Reply]
[]
[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]