Jump to content

blizz

Active Members
  • Posts

    205
  • Joined

  • Last visited

Everything posted by blizz

  1. blizz

    Do you code?

    I could provide a Subversion repository to Hak.5 ppl as long as it doesn't bone my server. 100mbit connection it has.
  2. This is what I basically use for my C++ stuff on linux. I'm using this one for some SDL, GL, boost gadgetry, so just replace it with the includes paths/libraries you need in your build. Why am I writing my own Makefile? I hate GNU auto*! It messes things up. But maybe I'll have to write my own GNU-like configure script later, anyway. I will add debugging build capabilities and a switch for binary/library building later, also I want to include windows support and add support for other languages (C at least. Of course, you just gotta replace the g++ in the CXX variable, but i want to do it more elegant with traditional CC and CCFLAGS). I will also add an EXTENSION variable then for the file endings. Place it in the root directory of your sources and it will compile any of your .cpp files to objects and link them together to one big binary. It will of course detect changes to all your source (.cpp) and header files (.hpp, but works with any of them, just include them somewhere). If you want to build a shared library you should just leave out any main function, add -fPIC -shared to the LDFLAGS and call your target libsomething.so. Also adjust the architecture flag -march to fit yours ;-) If you do not want to compile all the objects in the root directory, just add a second parameter to the collect call, this will only collect cpp files recursively from that directory. Oh and tribute goes to Volkard Henkel who wrote the kinda sick collect macro ;-) CXX = g++ CXXFLAGS = -g -W -Wall -Werror -pipe -O2 -march=athlon64 INCLUDE_PATH = -I/usr/include/GL -I/usr/include/SDL LIBRARIES = GL GLU SDL boost_signals LIBRARY_PATH = -L/usr/X11R6/lib LDFLAGS = $(LIBRARY_PATH) $(addprefix -l,$(LIBRARIES)) SOURCES = $(call collect,%.cpp) OBJECTS = $(patsubst %.cpp,%.o,$(SOURCES)) DEPS = $(patsubst %.cpp,%.dep,$(SOURCES)) collect = $(foreach n,$(wildcard $(2)*),$(filter $(1),$(n)) $(call collect,$(1),$(n)/)) TARGET = happycat all: $(TARGET) $(TARGET): $(OBJECTS) $(DEPS) $(CXX) $(LDFLAGS) -o $@ $(OBJECTS) -include $(DEPS) %.o: %.cpp $(CXX) $(CXXFLAGS) $(INCLUDE_PATH) -o $@ -c $< %.dep: %.cpp $(CXX) $(CXXFLAGS) -MM $< -MT $(<:.cpp=.o) > $@ clean: rm -rf $(OBJECTS) $(DEPS) $(TARGET) .PHONY: all clean I wonder if anyone is also interested in how Makefiles work? It's basically a very old but cool system to create incremental builds. FYI, incremental means that the whole thing doesn't have to compile everything again and again, it will just compile the parts that changed and link them back together.
  3. blizz

    Do you code?

    @sharpnyourteeth I agree with you.
  4. blizz

    Snakes

    huh? show me your code please
  5. blizz

    Snakes

    btw, to answer your python question, I googled and basically found that: import re p = re.compile('Hello') p.sub('Good Bye', 'Hello, World!') // produces: Good Bye, World! I hope I could help you.
  6. blizz

    Snakes

    No, but there are millions to come. Just wait a few more days. I wish Indiana Jones was on that movie. </totally pointless unfunny joke>
  7. blizz

    Snakes

    i'm not a python coder but may i ask how you want to modify the user input?
  8. blizz

    Do you code?

    Whee, take that: puts "You're the man now dog!" That was ruby. And i dislike writing "Hello, World!" all the time so i choosed YTMND ;-)
  9. blizz

    Do you code?

    I thought about starting a little code project with others here on the forum so interested people can read that and learn how to code, but I don't know yet what exactly we could create and which language it should be written in. I would *not* start with a low level language like C or C++, we can deal with stuff like heap/stack/memory allocation/explicit typing/smart pointers later, don't we? I suggest using PHP or even better Ruby for a first HowTo :-) And what could we code? A simple irc bot (that's kinda fun and interesting, too), an image to color-ascii converter script, lots of stuff, please tell me about your ideas in this thread, too. The question is not weither we reinvent the wheel or not in this case, it's maybe about creating our own hak5 coding subculture here.
  10. blizz

    Do you code?

    Hmm, image manipulation is a interesting topic as far as i know. For linux/insert_unix_or_whatever_derivative_here there are plenty of console-based image manipulation tools around (ImageMagick, etc). Are you talking about writing scripts which use those binaries for e.g. resizing or rather speaking of low level code, maybe blurring algorithms (gaussian blur)?
  11. blizz

    Do you code?

    Stupid question here: Can you think of anything you would want to code?
  12. blizz

    Do you code?

    Well, I know pretty much every "famous" language around, but I prefer Ruby and C++ :-) Though sometimes another language just fits better/is more fun. I discovered that it's actually very funny if you take a language like e.g. tcl which is easy to code but has strong limitations regarding the count of possibilities you have to achieve a task - the result is that you will have to shape your code so that it'll work best with that particular language. I just noticed that because in C++ and Ruby there are a f***ing million ways to say "Hello, World!". If you're really into C++ just read Modern C++ Design by Andrei Alexandrescu. Never seen something like that before.
  13. blizz

    Do you code?

    Maybe you noticed the new title for this forum, it now officially includes coding, too ;-) So the first question I wanna ask you is: do you code?
  14. At least I don't feel a penis enlargement when doing such things, it's just about trying out theories and having some fun. But I agree, also thinking that a majority of people "hacking" do not fully understand what they are doing. IMHO that's your point of view, it can be alot of fun discovering special vulnerabilities by thinking about how you could get into something without knowing how it really works. There comes the analysiation part which also includes some kind of datamining. Apparently the things more advanced people are doing perfectly fits your description of "[finding holes] in some security measure". But yes, opening WinChat/cmd isn't a success at all :-) - BUT I have to admit, I personally enjoyed discovering some of windows' pseudo security measures. (copy C:WINDOWSSystem 32cmd.exe to desktop and rename it to foo.exe to run it - what the hell were they thinking?) That's true ;) As I think for myself, I do understand the technology I use. And if anybody here doesn't - please regard doing so! It is alright to let some of those tools inspirate you, but then just think about it and try to understand what it actually DOES - consider writing something custom which is faster/better/more appropriate for the task. I wasn't that amazed when I read the thread topic at first, too. Well, script kiddies will last forever, just have to take a look at /var/log/auth, bruteforcing sshd and stuff.. Apart from causing alot of traffic it's somehow getting on my nerves :)
  15. just boring smb broadcast discovery shit, dunno ;) and some http it was only running.. mh... 3 minutes? and our network isn't that big. the most funniest thing would be forcing samba clients to use cleartext passwords but that funny lil plugin doesn't work that good anymore with new clients. well. there are other possibilties though
  16. we also got a quite new computer network at our school (for 2 years now, oh HIGH TECH GERMANY! ph33r!). i hung an old 233mhz laptop with my favourite linux distro and some tools (ettercap, ethereal, nmap and stuff) to the rj45 port, took over the desktops MAC adress (easiest way to get into the net) and arp'ed the whole network. sat between the server/router/samba/gateway/whatever and all other client machines and fired up ethereal to capture data. yeah, was fun. the company which installed the network had a paragraph in the agreement with our school that if security is breached that hard (would have been possible to easilly collect LOADS of personal data) we would get all the money back we've payed for the network and the computers ;P well, apart from network insecurity.. C:Windows was all writable.. stupid idiots :/ now guess where we store ut and starcraft ;) well, i only told some trustworthy people (also teachers) but nobody did nothing, just turned out to be real fun i wouldn't even call it hacking - that network is bs, every kid could break it.
×
×
  • Create New...