GithubHelp home page GithubHelp logo

angelbarrera92 / hasselhoffme Goto Github PK

View Code? Open in Web Editor NEW
64.0 3.0 14.0 2.84 MB

Hasselhoff will teach your colleagues to lock their computer when they are away.

License: MIT License

Shell 7.69% Go 89.05% Batchfile 2.36% Makefile 0.90%
security hoff hassellhoff wallpaper

hasselhoffme's Introduction

   __ __   ___    ____   ____   ____   __    __ __  ____    ____   ____   __  ___   ____
  / // /  / _ |  / __/  / __/  / __/  / /   / // / / __ \  / __/  / __/  /  |/  /  / __/
 / _  /  / __ | _\ \   _\ \   / _/   / /__ / _  / / /_/ / / _/   / _/   / /|_/ /  / _/  
/_//_/  /_/ |_|/___/  /___/  /___/  /____//_//_/  \____/ /_/    /_/    /_/  /_/  /___/ 

Header

Release Build Status Go Report Card Github All Releases Powered By: GoReleaser

Why does this even exist?

Security. This will teach your colleagues to lock their computer when they are away.

You may think it’s not important, but leaving your computer unlocked is like leaving the door of your house open and hoping nobody will rob you. Anyone could sit at your computer and gain access to your private information.

Some of the risks are:

  • Sending email from your account
  • Tamper and delete your files
  • Access and download Confidential data

How to use?

Open the terminal and type the following command:

Wget

wget https://tiny.cc/hasselhoff -O - | bash

Curl

curl -L https://tiny.cc/hasselhoff | bash

If you can't run the script, try with this url:

curl -L https://tiny.cc/hasselhoffme | bash

Windows usage

curl -s -L https://tiny.cc/hasselhoffme-win | cmd

or

curl -s -L https://tiny.cc/hasselhoff-win | cmd

Tested

  • Ubuntu 16 and 18
  • Fedora 27 and 28
  • MacOS
  • Windows 10

Building from source

To build from source, first clone the repository from GitHub into a local folder.

git clone https://github.com/angelbarrera92/hasselhoffme.git

Change folders into the newly clones working copy and ensure the project dependancies are available

$ go mod download
$ go mod tidy

Then build the project:

$ CGO_ENABLED=0 go build -v ./cmd/hasselhoffme

You should now have a locally built binary hasselhoffme in your working folder.

Stargazers over time

Stargazers over time

Contributors

If you want to see the list of geniuses who have contributed to this project, click on hasselhoff:

Hoff

hasselhoffme's People

Contributors

andrewslotin avatar angelbarrera92 avatar bengentil avatar bigookie avatar eransevi avatar ervitis avatar guumaster avatar hyeongukryu avatar iknite avatar imjorge avatar mkelsey25 avatar paurosello avatar renovate-bot avatar shingz96 avatar yulrizka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hasselhoffme's Issues

panic: Could not load any image

Trying to hasselhoff myself on Fedora, I got the following error:

curl -L https://tiny.cc/hasselhoffme | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 958 100 958 0 0 1362 0 --:--:-- --:--:-- --:--:-- 1362
panic: Could not load any image

goroutine 1 [running]:
github.com/angelbarrera92/hasselhoffme/internal/images.SearchGithubRawImages(0x0, 0x0, 0x405600, 0xc000022118)
/home/travis/gopath/src/github.com/angelbarrera92/hasselhoffme/internal/images/gitraw_images.go:36 +0x2a0
main.SearchRandomImage(0x745cd0, 0x0, 0x0, 0xc00004df88, 0xc000022118)
/home/travis/gopath/src/github.com/angelbarrera92/hasselhoffme/cmd/hasselhoffme/hasselhoffme.go:51 +0x3a
main.main()
/home/travis/gopath/src/github.com/angelbarrera92/hasselhoffme/cmd/hasselhoffme/hasselhoffme.go:34 +0x39

Hoff needs your help, contribute with awesome wallpapers

Hello world.

Hoff needs your help, already available wallpapers are awesome, but I think we can improve them a little bit.
Do you have new Hoff's wallpapers?
Open a PR adding your wallpaper in the internal/wallpapers directory, add yourself as a contributor, and roll out a new hasselhoffme release with your wallpaper :)

Let's see how far car we push this project!

Solve linting problems

Hi.

The hasselhoffme is almost perfect... but there are some code style problems.

[angel@elitebook hasselhoffme]$ make lint
go get -u golang.org/x/lint/golint
go: finding golang.org/x/lint/golint latest
go: finding golang.org/x/lint latest
golint --set_exit_status ./...
cmd/hasselhoffme/hasselhoffme.go:17:2: don't use ALL_CAPS in Go names; use CamelCase
cmd/hasselhoffme/hasselhoffme.go:18:2: don't use ALL_CAPS in Go names; use CamelCase
cmd/hasselhoffme/hasselhoffme.go:19:2: don't use ALL_CAPS in Go names; use CamelCase
cmd/hasselhoffme/hasselhoffme.go:50:1: exported function SearchRandomImage should have comment or be unexported
internal/images/bing_images.go:13:7: exported const BaseURL should have comment or be unexported
internal/images/bing_images.go:15:1: exported function SearchBingImage should have comment or be unexported
internal/images/gitraw_images.go:10:7: exported const UserRepo should have comment or be unexported
internal/images/gitraw_images.go:12:6: exported type Links should have comment or be unexported
internal/images/gitraw_images.go:18:6: exported type Content should have comment or be unexported
internal/images/gitraw_images.go:24:2: struct field HtmlURL should be HTMLURL
internal/images/gitraw_images.go:31:1: exported function SearchGithubRawImages should have comment or be unexported
internal/images/search_images.go:3:6: exported type ImageResult should have comment or be unexported
internal/images/search_images.go:8:6: exported type SearchImageFn should have comment or be unexported
Found 13 lint suggestions; failing.
make: *** [Makefile:9: lint] Error 1

Can anybody help me to make the hoff awesome?

You can test locally using:

make lint

Thanks!

Detect environments without graphical interface

To remember, this software sets the wallpaper to a wonderful David Hasselhoff photo.
But... What about desktop-less environments?

I'd like... in non-graphic environments, to set a message in /etc/motd (linux and mac) indicating the logged in user, the time this software was run along with a picture of David Hasselhoff in ASCII.

The photo must be changing, like wallpapers, randomly.

It must be developed in Golang or ShellScript.

Make an awesome Readme

Hi

Since this project begins to be widely used, there is a need for a README that perfectly describes the purpose of this project.

To remember, this project was born out of the need to raise awareness among co-workers who leave their computers unlocked.

That's when, with a url that's easy enough to remember, you can open any console and put hass on your partner's desktop.

The readme has to contain several winks and must make me laugh.

Thanks!

Adds contributors file

This repository contains the contributions of several people. That makes me happy a lot and I would love to have a contributor file where the names of the contributors who have participated in this project.

You can also add yourself as a contributor.

I only accept pull requests that contain the full list of all contributors having a funny differential touch.

Another requirements is to have linked the README.md with the new CONTRIBUTORS.md file.

Thanks

[ISSUE] Use the release package instead of script!

Since a version of this tool has already been released, the execution script must refer to it. This should serve as an entry point to identify the victim's operating system.

The first approach should be for bash operating systems (linux and mac)

Migrate to `go mod`

Since 1.11 go modules, it's included and the recommended package manager.

You can enable it by setting a environment variable GO111MODULE=on and running go mod why it should create everything for you.

Make a windows script as linux ones

This project needs an automatic script, like the one that works for linux and mac, to make it easier to run on windows operating systems.

As you can see, in linux and macos operating systems, with a simple command you can download and run the binary.

curl -L http://tiny.cc/hasselhoff | bash

As a requirement must be a single command line and that the procedure is as fast as possible. This must be documented in the README.md.

It must be compatible with Windows 7 or later.

Add arm support

This project is executed by hasselhoff.sh script.

This script does not take care about os architecture. So, executing this on a raspberry pi to test #16 does not works:

line 22: /tmp/david/hasselhoffme_0.2.1_linux_amd64: cannot execute binary file: Exec format errorz

Travis generates a linux arm version that is available at releases section. You have to modify hasselhoff.sh script to add some intelligence to detect processor architecture.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.