Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - techb

Pages: 1 [2] 3 4 ... 93
Beginner's Corner / Re: Help me learn about networking
« on: September 29, 2015, 02:56:18 pm »
As a supplement, go get Packet Tracer. Also here are some labs from the Cisco Academy

Beginner's Corner / Re: Python is good for hacking or Ruby?
« on: September 29, 2015, 02:49:55 pm »
I am really restraining alot from shouting and throwing shoes at all you guys for your stupidity and mere wanting to post shit without knowing a squid about them. Sorry, i really needed to let that out.

None of all the books you have mentioned about would be recommended for beginners. They are under no circumstances made for people to learn python, they actually assume abit of python knowledge. If you had read them and actually read the foreword and all that beginning stuff, you would know this. they have some serious advanced python code in some parts of them that most of the new users will be astounded.

Those focus on hacking, do we all learn to program so that we have stuff?? Pfffh, i am disappointed. If cookies meant anything to you guys i would mass eat them but meh, why waste the effort.

This, maybe in kinder words or something.


TechB, i believe you are mistaken.... BeastBot/EZBot IS OPEN SOURCE!! You should know since you have submitted code for it.
Also, it appears that TechBot is soo much simpler.... Although, this could be because it doesn't do anything......

I was mistaken,  EvilBot doesn't have the code available.

Lol, there is no need to get butthurt.

The core is in haskell, the scripts/modules are in bash, mmmh.

Did you ever get to know why techbot has never replaced Beastbot for EZBot irrespective of its complexity? I am going to direct Chris1 to give you the answer and if you have hopes of bringing wormbot to the big leagues then you will have your least requirements noted when still in initial development.

Otherwise, no problem with another choice to bring to the table. I better bounce my idea of refactoring Beastbot on chris1 to get the market shares back.

Techbot isn't in place because I never put it online,  it us 200 times simpler than beastbot, and ezbot is closed source.

Hardware / Script upload arduino sketch
« on: August 26, 2015, 03:36:31 pm »
I wrote this script to compile and upload an Arduino sketch because I don't like nor use the Arduino IDE. I can use my editor of choice now and not need to fire up the Arduino IDE just to upload my new firmware.

I do this by, at the top of my sketches making two comments that describe the board and serial port to use, and calling Arduino from the command line to compile it and upload it for me. I might add this to my editor I use for convenience if I feel spunky, but for now I just made it executable and plopped it in /usr/bin.

The script
Code: Python
  1. #! /usr/bin/python
  3. #
  4. # By: Techb
  5. # Date: Aug 26, 2015
  6. # A script to compile and load arduino sketchs.
  7. # This will check and make sure the tty is avail.
  8. # In your sketch you need to have two comments at the
  9. # the top of your file, example:
  10. #     // --board arduino:avr:uno
  11. #     // --port /dev/ttyUSB0
  12. # --board, you will need the board your using.
  13. # --port, is where your serail com is.
  14. # Linux only, I don't plan to add Windows support
  15. # since I don't use or have Windows. Feel free to add support.
  16. # Tested on Arch Linux 4.1.5, Python 3.4.3
  18. # Find more here:
  20. import sys
  21. import os
  23. def usage():
  24.     print("[??] Example: python <file>")
  26. def test_dev(p):
  27.     tty = p.split("/")[-1]
  28.     ld = os.listdir("/dev")
  29.     if tty in ld:
  30.         print("[+] Found %s, continuing." % p)
  31.     else:
  32.         print("[-] Port %s not found, try another..." % p)
  33.         sys.exit("[!] Exiting...")
  35. if len(sys.argv) < 2:
  36.     usage()
  37.     sys.exit()
  38. else:
  39.     sketch = sys.argv[1]
  41. try:
  42.     with open(sketch, "r") as fd:
  43.         fl = [l for l in fd.readlines()]
  44.         if "--board" in fl[0] and "--port" in fl[1]:
  45.             board = fl[0].strip().split("--board")[-1].strip()
  46.             print("[+] Using board %s" % board)
  47.             # test the port
  48.             port = fl[1].strip().split("--port")[-1].strip()
  49.             test_dev(port)
  50.             os.system("arduino --board %s --port %s --upload %s" % (board, port, sketch))
  51.             print("[+] Done.")
  53. except FileNotFoundError:
  54.     print("[!] File not found. Try again.")
  55.     usage()
  56.     print("[!] Exiting...")

Example sketch:
Code: C++
  1. // --board arduino:avr:uno
  2. // --port /dev/ttyUSB0
  4. /*
  5.   Blink
  6.   Turns on an LED on for one second, then off for one second, repeatedly.
  8.   Most Arduinos have an on-board LED you can control. On the Uno and
  9.   Leonardo, it is attached to digital pin 13. If you're unsure what
  10.   pin the on-board LED is connected to on your Arduino model, check
  11.   the documentation at
  13.   This example code is in the public domain.
  15.   modified 8 May 2014
  16.   by Scott Fitzgerald
  18.   modified 23 Aug 2015
  19.   by techb
  20.   adapted to be SOS
  21.  */
  23. // dickbutt: -.. .. -.-. -.- -... ..- - -
  24. // SOS: ... --- ...
  26. // the setup function runs once when you press reset or power the board
  27. void setup()
  28. {
  29.   // set baud rate
  30.   Serial.begin(9600);
  31.   // set pin 13 to output. Thre is an onboard LED attached.
  32.   pinMode(13, OUTPUT);
  33.   // set LED to low or off
  34.   digitalWrite(13, LOW);
  35. }
  37. // the loop function runs over and over again forever
  38. void loop()
  39. {
  40.   sos();
  41. }
  43. void sos()
  44. {
  45.   // SOS in morse code
  46.   char txt[] = "-.. .. -.-. -.- -... ..- - -";
  48.   // start SOS sequence
  49.   for (int i= 0; i <= strlen(txt); i++)
  50.   {
  51.     if (txt[i] == '-')
  52.     {
  53.       digitalWrite(13, HIGH);
  54.       delay(600);
  55.       digitalWrite(13, LOW);
  56.       delay(500);
  57.     }
  58.     else if (txt[i] == '.')
  59.     {
  60.       digitalWrite(13, HIGH);
  61.       delay(100);
  62.       digitalWrite(13, LOW);
  63.       delay(500);
  64.     }
  65.     else
  66.     {
  67.       digitalWrite(13, LOW);
  68.       delay(500);
  69.     }
  70.   }
  71.   delay(1000);
  72. }

General discussion / Re: Best os for someone new to Linux?
« on: August 23, 2015, 10:16:38 am »
Honestly, it doesn't matter. This question is on the same level as what programming language to start with. It doesn't matter, just pick one and start using it and learn.

I would suggest you use VM to start with. Install one in VMWare or VirtualBox and try to use it like it was your main OS. Find one you like and are comfortable enough with and install it on your actual machine.

I started with Ubuntu, moved to Mint, and then to Arch. Been with Arch ever since because I like it. My wife started with Mint and only uses Mint because she likes it. I have friends that run CentOS because they like it, others FreeBSD. It doesn't matter, pick one if you don't like it try another.

The point is that your learning. Since your on this forum, that is the main and only point. Others, like my sister-in-law, don't care. They want something simple, fast, and easy to use, so she uses Ubuntu and is happy. I like to code and muck about, so I use Arch and am happy.

General discussion / Re: Easiest programming/scripting language
« on: August 23, 2015, 09:49:13 am »
I'm not seeing a double post, but I do have to click the send button twice in order for it to send or it'll seem like it just delete my post for me.

Edited: Oh, I see what you mean by double post.

The Quieter You Become, The More You Are Able To Hear. -Kali Linux

Double post is just two in a row or more. It doesn't mean it's a duplicate, it means your spamming the thread with multiple entries right after the other. This is okay in some situations, but not this one. I have fixed your mistake twice, now that you know what it is, please stop and use the modify if you have more to add to a post.

Also, you can add that Kali quote to your signature in your profile options so you don't need to post it every time.

Beginner's Corner / Re: Learning Python to Hack
« on: August 21, 2015, 11:53:06 am »
Gray Hat Python seems to be written in a way accessible to beginners, but it was written in 2009.
It sounds like you've read this before; do you think its datedness will cause issues for anybody using Python 2.7 wanting to follow it start to finish?
Also, I did a google search for InfiniteSkills, and I couldn't find these books listed there?

Python 2.7 wont be an issue at all, now when you move to Python 3 it will be a problem. You can adapt most all of it (if libs used will let you) to python 3 once you learn what's changed and all.

Gray Hat and Black Hat Python are both really good. I recommend Black Hat Python more since I my self got more out of it. The books I link to in the Ref Material found in this tut are really good.

Scripting Languages / Re: TechBot, an IRC bot
« on: August 09, 2015, 06:14:50 am »
I changed the delimiter from  "!" to "." to avoid conflicts in the channels, so instead of !test, you would do .test as an example.

Also, chris1's urban dictionary (!wtf/!ud) has been ported. It doesn't give the upvote/downvote score from the urban dictionary website because I didn't find the info useful.

I will also be working on other ports and some originals as time goes on. Once I'm happy with the state and addons I'll host it on my server.

So this is a call for addons/plugins. If you want to code something small and useful, do it. I'll help you port it and make it something IRC can benefit from. Here is an example of the addon.

Code: Python
  1. # main() is what is executed. you can have any number of functions you want but main() is
  2. # what will be executed, so keep what you want to send inside of main().
  4. import time
  6. def main(nick, comargs, chan, send):
  7.     # example on sending a simple string to the default channel the bot is on
  8.     print("[*] Testing simple default")
  9.     time.sleep(1)
  10.     send.put("Success!")

Scripting Languages / Re: TechBot, an IRC bot
« on: August 07, 2015, 09:32:15 am »

I have ssl working now, the initial issue was passing the socket handle around to the multiprocessed plugin/adons. I am using queues now along with select, so CPU rape isn't a thing, and ssl works, and mulitprocessing works, and you get the point.

In your module, instead of just send("your data") it will now be send.put("your data")
Small and simple. I am trying to keep core and plugin/addons separate, so this should be the only change anyone would need to do pre-fix.

I have added along with updating in the adons folder to show examples on how to write plugings/addons and whatnot. Any questions ask here or on Github.

General discussion / Re: Is anyone of you a minimalist?
« on: August 03, 2015, 03:54:21 pm »
Fable and I are on the opposite sides here. She likes big open space and clean edges, while I'm not giving a shit about anything where I live looks like. I think it's a happy medium of my clutter and her decorating and stuff.

Hacking and Security / Re: is session hijacking still possible nowadays?
« on: August 02, 2015, 05:17:27 am »
On the LAN side of things, if you can predict the next seq numbers then sessions highjacking is still very much possible.

General discussion / Re: Who upgraded to Windows 10?
« on: August 01, 2015, 09:15:29 am »
Poor MicroSloth can't seem to get an OS right twice in a row since Win98 lol ME was horrible (imo?) XP ran great, Vista made Forrest Gump look like Einstein, <3 me some Win7, and Win8 was the dumbest shit ever (for regular PC users). I plan on upgrading my win8 box at the very least, probably my win7 box as well though. Been looking into the "free" upgrade offer trying to find the hidden "cost". TBH I'm half afraid a year from now when the upgrade is no longer free MS is gonna say it was trialware and make you pay for it lol.

I can't argue with stupid,  so I'll let my voice be mute in the sound of ignorance. Try and have a good one loud stranger.

General discussion / Re: Who upgraded to Windows 10?
« on: July 31, 2015, 11:13:07 pm »
The keylogger and things where with the dev version, this public release has all that removed. It will however send usage and crash reports and anything like every other system out there does if you opt to. There is nothing different about 10 than there is about any other Windows release.

From what I've heard and read, it's not bad at all. It's what 8 should have been, a better version of 7. I will be trying it and getting the free upgrade before next year and the free goes away. I might even make a new partition on my laptop just to run it.

Scripting Languages / Re: TechBot, an IRC bot
« on: July 31, 2015, 08:42:03 pm »
Merged, also now it's using utf-8 so the issue you where having is fixed.

Pages: 1 [2] 3 4 ... 93

Intern0t SoldierX SecurityOverride programisiai
Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.