Home » Archive

Articles in the Miscellaneous Category

Miscellaneous »

[30 May 2016 | No Comment | ]

Hello. This is a solution to another problem i faced.
I had this:
<%= link_to ‘Delete’,url_for(action: :delete,id: thing.id),method: :delete, data: {confirm: “Are you sure?”} %>
This should prompt a javascript confirmation with “OK” and “Cancel” buttons. but it won’t work and just goes to the action URL page.
The solution should be to add:
<%= javascript_include_tag :application %>
to your application.html.erb
But if you are on windows you will get this error:
Completed 500 Internal Server Error in 56ms
ActionView::Template::Error (TypeError: Object doesn’t support this property or method
(in C:/path/file.js.coffee)):
There is something wrong with the ‘coffee-script-source’ gem on windows
So the …

Miscellaneous »

[31 Jan 2016 | Enter your password to view comments. | ]

There is no excerpt because this is a protected post.

Miscellaneous, Tutorials »

[6 Nov 2014 | No Comment | ]
[Solution] Steam linux client fails to Verify Integrity of Game Cache

Hello Internet!
If I ever try the “Verify Integrity of Game Cache” option of steam to check my local games for corruption it doesn’t see my files and re-downloads the game, and my connection speed is slow 😀
I am using Linux Mint, and this affect Ubuntu as well.
Turns out it’s a known issue https://github.com/ValveSoftware/steam-for-linux/issues/2515
It’s because your distro is encrypting /home and thus steam can’t recognize the files for some reason..
The Solution:
Create a new library directory
Settings -> Download -> Steam library folders
Then create a new folder

And to keep your old games, copy …

Miscellaneous »

[12 Aug 2014 | No Comment | ]

I was cross compiling a program that required libcurl, so i had to cross compile curl first then compile the other program and pointing it towards that libcurl.
“./configure” was normal, but it failed “make” there was an error while linking
Here is a snippet from config.log

configure:5856: checking whether libcurl is usable
configure:5890: i686-w64-mingw32-gcc -std=gnu99 -o file.exe -g -O2 file.c -L/usr/lib/x86_64-linux-gnu -lcurl >&5
/tmp/ccPPDrjc.o: In function `main’:
/root/program/file.c:17: undefined reference to `_imp__curl_easy_setopt’
collect2: error: ld returned 1 exit status

The solution is simple adding mingw bin directory to the $PATH of operating system.
In …

Miscellaneous »

[9 May 2014 | 6 Comments | ]

I was installing a windows 7 iso via USB normally as i have done tens of times.
Using Rufus the windows ISO contents are now properly on the USB drive and ready to install.
Then rebooted and pressed F12 (Might be different in your case) to open the boot menu and chose to boot from the USB.
Then i got this weird error:
“No device drivers were found. Make sure that the installation media contains the correct drivers”
“A required CD/DVD drive device driver is missing. If you have a driver floppy disk, CD, …

Headline, Miscellaneous »

[27 Mar 2014 | No Comment | ]
[Game] The ship review

You are invited to a free cruise in a ship owned by “Mr. X” and after going there you have two choices, he kills you and have your family killed or you start killing whoever he orders you to murder on the ship.
If you are playing as a hunter you have to kill a certain person, first you only get a name and place. You go there and if you talk to people and turned out that’s the right person you will also get his face in your screen so …

Miscellaneous »

[11 Mar 2014 | No Comment | ]

In the first part i established that the 180,000 bitcoin moving is actually coming from addresses belonging to MtGox/MagicalTux.
Upon further inspection turned out it’s 200K actually not just 180K (1KecDYadohxk8MCDqKF8SBEMhCUNveAsCj)
Like i said the coins kept breaking till it was spreading (unevenly) across hundreds of addresses and the average balance was ~10 bitcoin each.
Yesterday the coins were reforming again, they are combining and reaching new addresses, holding balance 50 bitcoins each.
Here is the list of 50 addresses of those http://pastebin.com/GrFL6RRf
Here is a list of 209 other addresses http://pastebin.com/tQdFk6jS
The money can and …

Miscellaneous »

[4 Mar 2014 | 4 Comments | ]

I was playing with PHP (As usual) and i was thinking about date()
It’s a PHP function that displays date in different formats.
According to the documentation: “Unrecognized characters in the format string will be printed as-is.”
So what if i try to insert HTML there as well?
I tried <?php echo date(‘<img src=x onerror=alert(\’XSS\’)>’; ?>
But all characters are accepted in the format so the output was:
<59033 32Tue, 04 Mar 2014 15:59:32 +00002014-03-04T15:59:32+00:00=x 20143UTCTue, 04 Mar 2014 15:59:32 +0000Tue, 04 Mar 2014 15:59:32 +00002014Tue, 04 Mar 2014 15:59:32 +0000=pmTuesdayUTCTue, 04 Mar 2014 15:59:32 +000031(‘Xthth’)>
Obviously …

Miscellaneous »

[1 Jan 2014 | One Comment | ]
RIP 2013 (2013-2013)

So here is another one of my year start/end posts
(I thank/blame Jayson Street for this habit)
So 2013? For me it was like:

// NOP

I made some friends, i learned some things, i had some fun, i made some money.
But i am still the same:

Unmodifiable; I can’t do anything in this third world country and i can’t leave the country.
I am forced to finish college and do a 1 year in army, drop out of college and do 3 years of mandatory service, or spend 5 years on the …

Miscellaneous »

[16 Oct 2013 | No Comment | ]

Here is a list of all the crackmes’ writeups i did:
Part 1 (baby steps)