« first day (702 days earlier)      last day (2232 days later) » 

1:22 AM
After I return a different answer for the dns request with my own server up I want to send a pic of “hacked”
The DNS attach already works, really cool stuff...
Attack*
 
this is literally why we can't have anything nice
 
Lol I’m just having fun with the protocol... not gonna publish the code 😂
 
actually, I'm not sure where the file streaming is
 
Sending a scary image to the client
😂
 
no, in the esp sauce
 
1:26 AM
What do you mean
 
I'm trying to find the actual file streaming source code in the esp8266 web server
 
It’s just a simple socket eventually
 
ok, you find it, then
(I mean, duh)
 
I’ll write it for you (:
 
whatever
 
1:29 AM
Well more like copy from googld
void DownloadFile(SOCKET Socket){
if(Socket == NULL){
return;
}
while(1){
char filename[1024];
recv(Socket, filename, sizeof(filename), 0);
if(filename[0] == '.'){
break;
}
FILE* fp = fopen(filename, "r");
fseek(fp, 0, SEEK_END);
long FileSize = ftell(fp);
char GotFileSize[1024];
_itoa_s(FileSize, GotFileSize, 10);
send(Socket, GotFileSize, 1024, 0);
rewind(fp);
long SizeCheck = 0;
char* mfcc;
if(FileSize > 1499){
mfcc = (char*)malloc(1500);
while(SizeCheck < FileSize){
int Read = fread_s(mfcc, 1500, sizeof(char), 1500, fp);
Source:
 
suuuuure.
 
Eventually it’s just a while loop sending chunks
 
so then just point out where that is in github.com/esp8266/Arduino/tree/master/libraries/…
I'll wait over there
(you know, since github.com/esp8266/Arduino/tree/master/libraries/… is the code you're actually using)
 
char buf[1024];
int siz = f.size();
while(siz > 0) {
size_t len = std::min((int)(sizeof(buf) - 1), siz);
f.read((uint8_t *)buf, len);
server.client().write((const char*)buf, len);
siz -= len;
}
 
copying and pasting from google is not how you solve shit
 
1:40 AM
I’m just memeing
look at the header file
size_t streamFile(T &file, const String& contentType) {
_streamFileCore(file.size(), file.name(), contentType);
return _currentClient.write(file);
}
It’s not implemented in the cpp file as streamFile but as _streamFileCore
 
yeah, and everything of interest is a bunch of calls down in _currentClient.write()
I was following it, but got annoyed by the "memes" (note: "I'm just memeing" is not a good excuse for failing at humor)
 
You know I didn’t ask your specific help... I can do it myself you know tracing the implementation... I already solved it anyway.
 
why are you here, then?
 
I had a problem, @sehe helped me that’s all
 
2:15 AM
36 messages moved from C++ Questions and Answers
 
 
4 hours later…
6:07 AM
any andriod developer here
 
Rob
@superbjhon You'd be better off asking here. SOBotics isn't the place for programming questions
 
thank you
but ia m not getting acess there
 
Rob
You can request access. Alternatively, you can just post your question on the main site
5 messages moved from SOBotics
 
 
2 hours later…
8:30 AM
[ CheckYerFlags ] started in debug mode.
 
cyf s m
 
@chade_ You have 2,021 helpful flags. Your last achieved rank was Flag Overflow (Stack Overflow was created in 2008) for 2008 helpful flags. You need 1448 more flags for your next rank, <3456.
 
8:42 AM
[ CheckYerFlags ] started in debug mode.
 
8:55 AM
[ CheckYerFlags ] started in debug mode.
[ CheckYerFlags ] started in debug mode.
[ CheckYerFlags ] started in debug mode.
 
9:10 AM
@CheckYerFlags alive
 
@chade_ instance of v0.9.0 is running on chade_/PurePlastic (dev)
 
 
2 hours later…
11:24 AM
[ CheckYerFlags ] started in debug mode.
 
@CheckYerFlags s m
 
@chade_ You have 2,042 helpful flags. Your last achieved rank was Flag Overflow (Stack Overflow was created in 2008) for 2008 helpful flags. You need 1448 more flags for your next rank, <3456.
[ CheckYerFlags ] started in debug mode.
 
 
2 hours later…
1:45 PM
[ CheckYerFlags ] started in debug mode.
[ CheckYerFlags ] started in debug mode.
 

« first day (702 days earlier)      last day (2232 days later) »