$ su
$ cd /data/data/cn.mozilla.firefox/files/mozilla <root@TB3-710F:/data/data/cn.mozilla.firefox/files/mozilla # ls
Crash Reports
Pending Pings
profiles.ini
s5jkurek.default
root@TB3-710F:/data/data/cn.mozilla.firefox/files/mozilla # vi profiles.ini
And IF have cookies can add...
How get cookies ?
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <string.h>
#include <arpa/inet.h>
#include <termios.h>
#include <termios.h>
#include <fcntl.h>
#include<iostream>
#include<stdio.h> // printf
#include<string.h> // strlen
#include<string> // string
#include<sys/socket.h> // socket
#include<arpa/inet.h> // inet_addr
#include<netdb.h> // hostenta
#include <unistd.h>
#include<iostream>
#include<sys/socket.h> // socket
#include<arpa/inet.h> // inet_addr
using namespace std;
#define BUFLEN 20
int len;
struct sockaddr_in server;
unsigned char buf[BUFLEN + 1];
static struct termios tin;
int hostname_to_ip(char * hostname , char* ip)
{
struct hostent *he;
struct in_addr **addr_list;
int i;
if ( (he = gethostbyname( hostname ) ) == NULL)
{
// get the host info
herror("gethostbyname");
return 1;
}
addr_list = (struct in_addr **) he->h_addr_list;
for(i = 0; addr_list[i] != NULL; i++)
{
//Return the first one;
strcpy(ip , inet_ntoa(*addr_list[i]) );
return 0;
}
return 1;
}
struct get
{
char rec[512];
char c[512];
} gt;
int main(int argc, char *argv[])
{
char *hostname = argv[1];
char ip[100];
char str[255];
int nread; /* return from read() */
int nready;
int maxfd;
int port=80;
hostname_to_ip(hostname , ip);
printf("%s resolved to %s" , hostname , ip);
int sock = socket(AF_INET, SOCK_STREAM, 0);
server.sin_family = AF_INET;
if (argc < 2 ) {
printf("run witch argv toturialspoint.com\n");
}
else{
server.sin_addr.s_addr = inet_addr(ip);
}
// int port = 80;
if (argc == 3) {
port = atoi(argv[2]); }
printf("%s resolved to %s" , hostname , ip);
server.sin_port = htons(port);
connect(sock, (struct sockaddr *)&server, sizeof(server));
struct timeval ts;
ts.tv_sec = 1; // 1 second
ts.tv_usec = 0;
ssize_t numBytesRecv = 10;
char replyMessage[520];
char *replyMessage2[5200];
FILE *fp;
if ((fp=fopen("test3.html", "w"))==NULL) {
printf ("can't open file to write\n");
exit(1); };
/// ######################## ///
printf("port is: %d\n", port);
printf("host ip is %s\n", argv[1]);
printf("enter the , exemple:/index.aspx\n");
scanf("%s", str);
sprintf(gt.c, "GET %s HTTP/1.1\r\nLocation: %s\r\nHost:%s\r\n"
"User-Agent:Mozilla/5.0\r\n"
"Content-Type: text/html; charset=iso-8859-1\r\n"
"Content-Type: text/html\r\n"
"Accept-Encoding: gzip, deflate\r\n"
"Connection: keep-alive\r\n"
"Content-Length: 5987\r\n"
"Vary: Accept-Encoding\r\n" "Expect: 200-OK\r\n\r\n", str,str, ip);
// cout<<bufSend<<endl;
if (port==80){
send(sock, gt.c, sizeof (gt.c)+255 ,0);
do{
numBytesRecv = recv(sock, replyMessage, strlen (replyMessage)+255, 0);
printf("%s\n", replyMessage);
fprintf (fp, "%s\n", replyMessage);
memset(&replyMessage, 0, sizeof(replyMessage));
} while (numBytesRecv>0);
}
printf("save in test2.html file\n");
fclose (fp);
}
C/C++ can help or curl ... And run whitch this paramets :
m.chaturbate.com 80
And put location folder some like :
https://zh.chaturbate.com/monica29/
Return cookies!?
And can edit profiles.ini in folder
m.chaturbate.com resolved to 104.18.90.31m.chaturbate.com resolved to 104.18.90.31port is: 80
host ip is m.chaturbate.com
enter the , exemple:/index.aspx
HTTP/1.1 403 Forbidden
Date: Sun, 24 Nov 2019 22:27:08 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: close
Set-Cookie: __cfduid=d11291e9d92ff89a80f6422ec80a9a89c1574634428; expires=Tue, 24-Dec-19 22:27:08 GMT; path=/; domain=.104.18.90.31; HttpOnly
Cache-Control: max-age=15
Expires: SunŠ¶�/�d��H��e��
, 24 Nov 2019 22:27:23 GMT
X-Frame-Options: SAMEORIGIN
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Vary: Accept-Encoding
Server: cloudflare
CF-RAY: 53aecefa8e48cca7-WAW
Content-Encoding: gzip
␊
root@TB3-710F:/data/data/cn.mozilla.firefox/files/mozilla # vi profiles.ini
Change to this
[Profile0]
Path=s5jkurek.default
IsRelative=1
Default=1
Name=default
[General]
StartWithLastProfile=1
[Profile1]
Path=__cfduid=d8dea48dcd254fc1af0cbd21fd426f2ac1574586141
IsRelative=1
Default=1
Name=default
:wq
And we have this same reklam in firefox ...
PS
No comments:
Post a Comment