Jump to content

Zylla

Dedicated Members
  • Posts

    647
  • Joined

  • Last visited

  • Days Won

    46

Posts posted by Zylla

  1. For example. here are my two variables:
     

    export PATH=$PATH:/home/zylla/OpenWrt-SDK-15.05-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/
    
    export STAGING_DIR=/home/zylla/OpenWrt-SDK-15.05-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/staging_dir
    

     

  2. make menuconfig
    make V=s

    This is used when you're using the SDK to build packages, and even entire firmware-images.
    Not if you're just using the toolchain to compile a simple c-file.

    If i'm going to help you more, i'm going to have to know exactly what you wrote when you set your two variables.
    Because it looks like it's not set correctly.:wacko:
    If it was, it should have recognized the command: "mips-openwrt-linux-uclibc-gcc"

  3. 52 minutes ago, digip said:

    Another question. Is there a native compiler for openwrt in their repo? You'd have to look in the one specific for your device - http://downloads.openwrt.org/snapshots/trunk/

    Yes.
    https://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/gcc_4.8.3-1_ar71xx.ipk
    gcc for Chaos Calmer 15.05. This one is for the ar71xx (mips)
    There are lots of other archs. and openwrt-versions supported.

  4. 47 minutes ago, digip said:

    Try typing "which mips-openwrt-linux-gcc" and then using the whole path it gives you? Also, should not be "-o hello.c -o hello" but "hello.c -o hello"?

    This has me curious now, as I just realized you can install openwrt in a virtual machine, essentially setting up a wifi router with a few wireless nics attached to a VM. I knew you could do it with other router software, but just dawned on me you can do this with openwrt. I may have to try this now.

    Yes you can.
    I have both OpenWRT and the new "LEDE" version running in VMware (using the x86_64 arch.)
    I'm not emulating mips, though you can do that using QEMU.

    Btw "Kerravon": I just noticed your gcc command is not correct. You're supplying the "-o" (output) argument two times.
    Also, please show me your PATH variable and your STAGING_DIR variable.
    Also, i need the folder path to where you extracted the OpenWRT-SDK.

  5. 16 hours ago, kerravon said:

    ran several of the sdk installation including toolchain installatiom compile fo x86 perfect but when tryto use mip_gcc compiler  (forgot the exact name now) always get command not found. I don't want to build ipk t the moment just executables that I will scp into the mr3020, wr703n and eventually the pineapple.Sorry for delay in answering just finished another tutorial which doesn't seem to work.

    If you read though the cross-compile section you will find some info about adding the toolchain dir to your PATH variable, and also the STAGING_DIR variable.
    Then you can launch the gcc compiler, or Makefile through the terminal inside the folder of the stuff you're trying to compile.
     

    mips-openwrt-linux-uclibc-gcc -o output_binary csample.c
    CC=mips-openwrt-linux-uclibc-gcc LD=mips-openwrt-linux-ld make
    ./configure --build=x86_64-unknown-linux-gnu  --host=mips-openwrt-linux-uclibc
    

    ^ Some sample commands you can use inside your project-folder after having setup your PATH variable correctly. (On your linux-desktop)
    This will not create a IPK, but simply compile your code for a different cpu-architecture.

  6. To install GCC on your Pineapple Nano you need to issue:

    opkg update
    opkg install gcc --dest sd

    If you have a Tetra, just remove "--dest sd" from that command. (gcc and its dependencies takes up some megabytes of space)

    Regarding the SDK you can download the correct OpenWRT SDK (which you can use to cross-compile binaries for the latest Pineapple on your desktop) here:
    https://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/OpenWrt-SDK-15.05-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2

    I'm going to have to refer to the links i posted above about using the SDK/Toolchain, because it's to much information for me to go in depth with in just a single post.
    But you should be able to get started cross-compiling after reading them thoroughly.

    If you just need to compile a few bytes of code without much dependencies, just download gcc on your pineapple and test it.
    Be warned. If you're trying to compile stuff that are "heavy"/big on your Pineapple with gcc, you most likely will need to compile alot of dependencies as well.
    And not everyone compiles as easy on the Pineapple as on your desktop. (Different cpu architecture)

  7. You can use both iwconfig and iw to set the interface channel.

    Examples:

    iwconfig wlan0 channel 11
    iw dev wlan0 set channel 11

    Your interface can only be in 'one channel at a time'.
    When attacking/listening for a specific AP that you know the channel of, it would we wisest to set your interface to the same channel, to not miss out any packets.

    When airodump-ng is using "all channels" it is automatically hopping through all the channels. (Staying on one channel for a few milliseconds, before jumping to the next)
    So for that "brief period of time" that you are not on the same channel as your target, you will miss out on any packets transmitted at that time.

  8. 23 hours ago, cheeto said:

    I'm starting to think that this is a hardware problem.

    Fact:  I can see the Nano's SSID from a normal distance (25 - 30 feet)

    Fact: I can't connect to it unless I'm within 5 feet from the device

    I tried to connect with several devices, mobile phone, tablet and laptop.  same results  :(

    I've changed wifi channels, changed mac address, tried connecting to both the open AP and private AP.  same results.  :(

    I searched the forum and this issue has not been mentioned

    When the problem occurred I was powering it with a 5.0v  1.5a battery.   So I think we could discard having fried it.   Heck, I'm connected to it now and could see the GUI.  (but I'm a foot away from the nano)

    What's going on???

     

    Cheers

    Have you tested it without wlan2 attached? Just curious :)

  9. 15 hours ago, spac3gh0st said:

    im still curious why on my windows machine the ipv4 read "no internet connection" when i was still able to connect to my pineapple on that adapter

     

    If you are referring to the Pineapples interface on the windows machine, then it's because that interface does not provide your machine with a internet connection.
    Glad you got it sorted out ! :)

  10. You're not exactly providing a lot of information as to what you are doing exactly, and it's not easy to help when we don't have exact details.

    9 hours ago, RickyHax20 said:

    it will tell me time after time to enter the password

    What are you talking about here exactly? I'm guessing it's the Pineapple website: http://172.16.42.1:1471
    Is that correct?

    If you have lost the password to login to your Pineapple, you can use the reset button (which is located on the Pineapple) to reset it to its factory default setttings.

  11. On 13.3.2017 at 6:59 AM, spac3gh0st said:

    yeah im having this issue as well, i noticed when i iwconfig with the pineapple

    (after ive ran the ./wp6.sh and connected )  

    iwconfig
    lo        no wireless extensions.

    enx00c0ca8faf62  no wireless extensions.

    enp3s0    no wireless extensions.

    wlp2s0    IEEE 802.11bgn  ESSID:"WifiLAN"  
              Mode:Managed  Frequency:2.462 GHz  Access Point: Y0:1D:7d:V2:BE:05   
              Bit Rate=72.2 Mb/s   Tx-Power=20 dBm   
              Retry short limit:7   RTS thr=2347 B   Fragment thr:off
              Encryption key:off
              Power Management:off
              Link Quality=70/70  Signal level=-28 dBm  
              Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
              Tx excessive retries:0  Invalid misc:7   Missed beacon:0

     

     

    meow?

     

    iwconfig, which you used on you Linux machine, displays your wireless interfaces. (On you linux machine)
    And as far as i can see, you Linux machine seems to be connected to WifiLAN over wlp2s0. I'm guessing that this is where you get internet from.

    After running wp6.sh you linux machine should then "share" this connection to the Pineapple's interface.
    This interface i cannot see, because it's not a wireless interface. ifconfig would be better to pinpoint which interface belongs to the Pineapple.

    That interface should btw have an IP like this: 172.16.42.42

    ifconfig eth1 172.16.42.42/24


    What happens if you try to SSH to the Pineapple, or even browse to it: http://172.16.42.1:1471  ?

  12. On 11.3.2017 at 10:39 PM, GermanNoob said:

    @zylla, even though I find it interesting getting USB tethering to work with the iPhone, I wonder what would be the advantage in comparison to the wifi-tethering? I like the possibility to deploy the NANO at position A and control it from position B, which is not so obviously during operation...

    It would depend on the situation i think.
    For instance; when walking around doing a pentest, and you're trying to cover a big area.
    You would also free one of the radios which gets locked in station mode when connected to your iPhone over wifi.

    Also, when Android can do it and iPhone cannot, i get a weird anxiety like feeling in my stomach. Which would probably go away if i made it work, lol. :)

  13. This would require the web-server to be running on the victims computes.
    PHP-code is only executed on the server which is running the http-server.

    If i open my browser, point it to a website with some php-code which uses the exec() function, that exec() function would not be run on my computers, but on the server.
    So for instance, if the php-code contains malware, it would then infect the server.

    At best you could get the php script to offer the client a .exe-file, but the same can be accomplished with normal html.

    I hope this answers your question.

  14. 7 hours ago, elimisteve said:

    @Zylla That is fantastic news for me!  Can I ask you a question about that?

    I'm trying to build a custom kernel for my new Nano.  I've gathered that I can "use kernel_menuconfig" to find this menu where I can disable FPU, but it's not clear to me how much of OpenWRT I need to build on my Linux desktop in order to get to the point where I'm running commands like the ones suggested by http://trac.gateworks.com/wiki/OpenWrt/kernelconfig .

    Any pointers would help a ton.  Thanks!

    I have some repositories on github, where i merged Hak5's outdated repos with chaos-calmers upstream repo.
    You can find them here:
    https://github.com/adde88/openwrt-pineapple-nano
    https://github.com/adde88/openwrt-pineapple-tetra


    This will let you build kernel-version 3.18.45.
    And i suggest you do it like this:
     

    ./scripts/feeds update -a
    make menuconfig
    make kernel_menuconfig
    make V=s

    Use menuconfig as you normally would, then make kernel changes after that with kernel_menuconfig
    Then make V=s to compile everything. It works like a charm for me. :wink:

    When i find time, i hope to compile a kernel-version 4.1.x or 4.4.x for the Pineapples.
    But i'm not sure if the closed-source software on the pineapples will run. But time will tell :happy:

  15. On 7.3.2017 at 0:34 PM, elimisteve said:

    @ComZer I'm trying to do something similar, but I just want to replace the kernel with a custom one.  Have you happened to spot the best way to do that?

    Thanks!

    I have built several custom kernel versions for both the tetra and the nano. And i just built everything as i normally would on the OpenWRT SDK.

×
×
  • Create New...